On 2009-08-03 01:25, jeremy jozwik wrote:
On Sun, Aug 2, 2009 at 11:20 PM, Ron Johnson<ron.l.john...@cox.net> wrote:
Sure. For example, let's say that you've got a list of raw files that you
want to convert to jpeg and then make thumbnails from.
#!/bin/bash
cd /photo/raw
for i in *.raw;
do
bn=$(basename "${i}" .raw)
convert_to_jpg "${i}" /photo/jpg/"${bn}".jpg
make_thumb /photo/jpg/"${bn}".jpg /photo/thumbs/th_"${bn}".jpg
done
very cool, will have to wait till next weeks photo adjustments to
test. ive already converted this weeks by hand.
thanks again
No problem. You might want to peruse these:
http://www.ee.surrey.ac.uk/Teaching/Unix/
https://kb.iu.edu/data/afsk.html
and as your needs grow, try these:
http://tldp.org/HOWTO/Bash-Prog-Intro-HOWTO.html
http://tldp.org/LDP/abs/html/
--
Scooty Puff, Sr
The Doom-Bringer
--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org