On Monday 06 March 2006 11:32, [EMAIL PROTECTED] wrote:
> > I'm trying to (re-)generate some thumbnail images like:
> >
> > # convert -resize 125  1.jpg thumbs/1.jpg
> >
> > that gives me what I need, but, I haven't suceeded looping it:
> > basically, I'd like to run convert on all '*.jpg'
> >
> > # for i in *.jpg; do convert -resize 125 $i ./thumbs/$1; done
> > convert: Unable to open file (./thumbs/) [Is a directory].
>
> I think you need backticks and ls in there...
>
> # for i in `ls *.jpg`; do convert -resize 125 $i ./thumbs/$1; done

KISS

for i in *.jpg
do ...

James
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to