Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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

unmigrated-wiki-markup
Panel
No Format

rename -v 's/(\d{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.