[arch-general] a bit more script

pete p.nikolic1 at btinternet.com
Tue Mar 20 10:37:49 EDT 2012


On Tue, 20 Mar 2012 10:24:08 +0200
Jesse Juhani Jaara <jesse.jaara at gmail.com> wrote:

> 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
> 

Hi 

Well sorry but that does nothing but generate a blank awardgallery.html
and a complaint of 
line 2: syntax error near unexpected token `done'

so guess it's back to hacking by hand 

Thanks to  John K Pate  but i dont at the moment have time to sit and
digest heaps of variables i just need to solve this one problem  . 

I can study when i have more time and found somewhere else to live
outside of bloody Sandwell  ..

Thanks   Pete .


-- 
Linux 7-of-9 3.2.11-1-ARCH #1 SMP PREEMPT Thu Mar 15 09:19:02 CET 2012
x86_64 AMD Phenom(tm) 9600B Quad-Core Processor AuthenticAMD GNU/Linux


More information about the arch-general mailing list