> for i in `ls *.gif | awk -F. '{print $1}'`; do \
> convert -resize 50% ${i}.gif ${i}_resize.gif; \
> rm -f ${i}.gif; \
> done
That should already be removing the old version. Does it give any errors?
If you change
rm -f ${i}.gif; \
to
mv ${i}_resize.gif ${i}.gif; \
It should replace the original. Make sure you have backups before you try it.
Received on Sat Mar 17 18:16:42 2007
This archive was generated by hypermail 2.1.8 : Sat Mar 17 2007 - 18:16:48 CST