[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ossig] help on shell scripts



On Sun, 2005-07-10 at 18:05 -0700, Ng Swee Meng wrote:
> i was working on a bash script to resize photo in a
> directory(because my friend have pictures with a total
> of  >100MB). and i happen to have imagemagick on my
> linux system. 
> 
> the requirement is that, it is able to process every
> file in the family. and exclude non-graphic file

ls -1 *.JPG | sed "s/\(.*\)\.JPG/\1.JPG \1_thumb.JPG/" | xargs -n 2
convert -resize $response -rotate 90

How's that ugly-ness?

Taken from the place where I throw really, really, junk code
-- 
Colin Charles, http://www.bytebot.net/


---------------------------------------------------------
To unsubscribe: send mail to ossig-request@mncc.com.my
with "unsubscribe ossig" in the body of the message