On Fri, 17 May 2002, Ken Ambrose wrote:
> for i in *
> do
> mogrify -geometry 30%x30% $i
> echo "Done with $i"
> done
>
> Unfortunately, it takes each seperate "word" as a different paramater. I
> -know- I've done this before, but I just can't remember how. Suggestions?
The easiest way I can think to do this is:
OLDIFS=$IFS
IFS="
"
for i in *
do
mogrify -geometry 30%x30% $i
echo "Done with $i"
done
IFS=$OLDIFS
(IFS = Internal field seperator.. just set it to newline and only newline)
--
Every sweet has its sour; every evil its good. - Ralph Waldo Emerson
*****************************************************************
To unsubscribe from this list, send mail to [EMAIL PROTECTED]
with the text 'unsubscribe gnhlug' in the message body.
*****************************************************************