On Sat, Mar 8, 2008 at 1:07 PM, Felix Sheldon <[EMAIL PROTECTED]> wrote:
>
>  It looks like you might be using single quotes and not back-ticks (on
>  the ~ key).
>
>  This works for me, with the echo in there at least.
>
>  for i in `seq 1 125`; do j=`printf %06d $i`; echo montage -geometry +4+4
>
> a_$j.jpeg b_$j.jpeg c_$j.jpeg d_$j.jpeg montage$j.jpeg; done

BTW - you can do away with "printf" and tell seq itself to format the
output using "-f %06g".

Notice that "seq" only accepts "f", "e" or "g", not "d".

So the above will translate to:

for j in `seq -f %06g 1 125`; do echo montage -geometry +4+4 a_$j.jpeg
b_$j.jpeg c_$j.jpeg d_$j.jpeg montage$j.jpeg; done

Cheers,

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