16 September 2011

bulk append .jpg suffix with for i in *; do mv $i $i.jpg; done

problem:

ls 
qv01
qv02
qv03

solution:

for i in *; do mv $i $i.jpg; done
ls
qv01.jpg
qv02.jpg
qv03.jpg

No comments:

Post a Comment

Pages