mirror of
https://gitea.com/mcereda/oam.git
synced 2026-02-09 05:44:23 +00:00
627 B
627 B
rename
Note: this page refers to the command from the
util-linuxpackage on Linux or Homebrew'srenamepackage.
TL;DR
# Show what would change without changing anything (dry run).
rename -vn foo bar *
rename -n 's/^(\d{4}-\d{2}-\d{2}) (.*)$/$1 addition $2/' 'file'
rename -n 's/^What.*(\d{4}-\d{2}-\d{2}) at (\d{2}\.\d{2}.\d{2}\..*)/$1 $2/' *