rename
linux
Rename multiple files. WARNING: This command will overwrite files without prompting unless the dry-run option is used. Note: This page refers to the command from the `util-linux` package.
More info →Options (2)
booleanDry-run - display which renames would occur without performing them
Example:
rename {{[-vn|--verbose --no-act]}} {{foo}} {{bar}} {{*}}-o, --no-overwritebooleanDo not overwrite existing files
Example:
rename {{[-o|--no-overwrite]}} {{foo}} {{bar}} {{*}}Examples (6)
Rename files using simple substitutions (substitute `foo` with `bar` wherever found)
rename foo bar *Dry-run - display which renames would occur without performing them
rename [-vn|--verbose --no-act] foo bar *Do not overwrite existing files
rename [-o|--no-overwrite] foo bar *Change file extensions
rename .ext .bak *.extPrepend "foo" to all filenames in the current directory
rename '' 'foo' *made by @shridhargupta | data from tldr-pages