[arch-general] a bit more script

Jesse Juhani Jaara jesse.jaara at gmail.com
Tue Mar 20 04:24:08 EDT 2012


Oh sorry I forgot something important from the command. In for f in...
you use $f to replace the filename. In find you -exec you use {}
find . -name '*.jpg' -exec echo "<a class=\"highslide\" href=\"{}\"
onclick=\"return hs.expand(this)\"><img src=\"thumbs/\"{}\"></a>" ;
done >> awardgallery.html

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 230 bytes
Desc: This is a digitally signed message part
URL: <http://mailman.archlinux.org/pipermail/arch-general/attachments/20120320/8fab23a1/attachment.asc>


More information about the arch-general mailing list