Lance Levsen wrote:
> jimw wagner wrote:
>
>> /Desktop/Babylonian-Assyrian texts/signlist/1-49signlist_files$ ${i}.gif
>> ${i}_resize.gif; do$> for i in `ls *.gif | awk -F. '{print $1}'`; do
>> convert -resize 25%
>>
>> JimW
>>
>
> Hey Jim,
>
> You're missing half of the shell script. When I said one line, I meant
> that the whole thing had to be on one line. Here it is again with '\' at
> the end of the lines to indicate continuation and with the rm to remove
> the original files.
>
> Oh, one thing too, it's contingent on the fact that the file names only
> have one '.' in them separating the name from the extension.
>
> -----------
> for i in `ls *.gif | awk -F. '{print $1}'`; do \
> convert -resize 25% ${i}.gif ${i}_resize.gif; \
> rm -f ${i}.gif; \
> done
> -----------
>
> Hope that helps.
> lance
>
>
Yes, that works. For some strange reason, a few in the file were not
resized. I see that 25% is just a bit small, though, so I'm going to
have to play with the numbers.
Thanks very much,
JimW
Received on Sun Feb 11 23:11:47 2007
This archive was generated by hypermail 2.1.8 : Sun Feb 11 2007 - 23:11:52 CST