Files
oam/knowledge base/rename.md
Michele Cereda ab3becd912 Added source
2023-01-01 19:43:49 +01:00

550 B

rename

Note: this page refers to the command from the util-linux package on Linux or Homebrew's rename package.

TL;DR

# Show what would change without changing anything (dry run).
rename -vn foo bar *

rename -nv 's/^(\d{4}-\d{2}-\d{2})  (.*)$/$1  addition  $2/' 'file'

Sources