tldr/pages/osx/rename.md

168 B

rename

Rename a file or group of files with a regex.

  • Replace from with to in the filenames of the specified files:

rename 's/{{from}}/{{to}}/' {{*.txt}}