Sunday, May 15, 2011

batch code to change extension

for i in `ls *.JPG`;do f=${i%%.*};cp $i "$f".jpg;done

Just replace the jpg to whatever you want

No comments:

Post a Comment