You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

rename or prename is Perl tool can rename multiple files using regular expression.
For example to rename .mp3 files to 0.mp3

rename -v 's/(\d

Unknown macro: {2}

).mp3/0$1.mp3/' ??.mp3
-v, --verbose
-n, --no-act

Usually you should use -n and -v option to test your expression first, after you make sure it works as you expected, remove the -n option to do the real job.

  • No labels