hi all hackers
will you help me? I would like to
1. copy files in directory with adding for example "-hd" into names..
so for example, when I got:
picture.png
picture2.png
after running the script I would like to have:
picture.png
picture2.png
picture-hd.png
picture2-hd.png
..so 4 files.. is it possible? Don't like automator, I preffer sh script for faster work,
and then I would like to use this script
Code:
#!/bin/bash\
for f in *.*
do convert $f -resize 50% $f
done
but ONLY for pictures without containg "-hd" in name..
using snow leo 10.6.8
how to do this?
or better way maybe:
1. make directory temp
2. copy *.jpg into temp
3. rename *.jpg to add "-hd"
4.run script to resize original non hd pictures
5. copy -hd from temp to base folder
how to do this?
thank you!