1
#!/bin/sh
2
# Converts all images in current directory
3
4
old=$1
5
new=$2
6
7
for file in ./*."$old"; do
8
convpic -i "$file" -o "`basename \"$file\" \"$old\"`$new"
9
done
10