bulk renaming multiple file
Last updated
There are couple of way to rename multiple files.
From http://unix.stackexchange.com/questions/1136/batch-renaming-files
example we have files
image0001.png
image0002.png
image0003.png
...And we would like to rename it to
0001.png
0002.png
0003.png
...this works with linux and mac without installing anything
for f in *.png; do mv "$f" "${f#image}"; doneThis is my favorite way since I'm using ZSH and oh-my-zsh. Check it now, it's awesome
or let zsh automatically define $1, $2 etc
for more complex operation, sometimes it easier to rename the file on your editor.
there is qmv from renameutils
it will open editor with 2 columns, you can edit the right size rename that file
Last updated
$ autoload zmv
zmv 'image(*.png)' '$1'zmv -w 'image*.png' '$1.png'$ qmv *.png