February 25, 2013

Renaming files

Lately I tried to order a bunch of my old photos. All imported from CD, with similar names (guess it was from back when the digicams started over once they'd lost their battery?).

Any huh I needed to rename some photos when there was a name clash, and I didn't bother pointing and clicking in this case. Here's a small command line renamer:

for i in *.jpg ; do mv $i new_name${i#01} ; done

Have fun!

No comments: