Skip to content

rename

  • Rename multiple files and/or search and replace within files
  • Be careful as its functionality is not the same on all Linux distributions
# Recover backup files whatever.bak -> whatever:
rename 's/\.bak$//' *.bak