Do not rename a symlink but its target.
Show which files where renamed, if any.
Do not make any changes.
Display version information and exit.
Display help text and exit.
Given the files foo1, ..., foo9, foo10, ..., foo278, the commands
rename foo foo0 foo?
rename foo foo0 foo??
will turn them into foo001, ..., foo009, foo010, ..., foo278. And
rename .htm .html *.htm
will fix the extension of your html files. Provide an empty string
rename '_with_long_name' '' file_with_long_name.*
will remove the substring in the filenames.
The renaming has no safeguards except the --no-act option. If the
user has permission to rewrite file names, the command will perform
the action without any questions. For example, the result can be
quite drastic when the command is run as root in the /lib directory.
Always make a backup before running the command, unless you truly
know what you are doing.
This page is part of the util-linux (a random collection of Linux
utilities) project. Information about the project can be found at
⟨https://www.kernel.org/pub/linux/utils/util-linux/⟩. If you have a
bug report for this manual page, send it to
email@example.com. This page was obtained from the
project's upstream Git repository
2017-03-13. If you discover any rendering problems in this HTML ver‐
sion of the page, or you believe there is a better or more up-to-date
source for the page, or you have corrections or improvements to the
information in this COLOPHON (which is not part of the original man‐
ual page), send a mail to firstname.lastname@example.org
util-linux June 2011 RENAME(1)