Versions Compared

Key

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

...

No Format
rename -v 's/_//g' *
-v, --verbose
-n, --no-act

's/_//g' means substitute '_' with nothing (which means remove the '_' mark). Without the 'g' at the end, it will only deal with the first '_' mark in a filename.

Note
titleTest before action

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

...