1RENAME(1) User Commands RENAME(1)
2
3
4
6 rename - rename files
7
9 rename [options] expression replacement file...
10
12 rename will rename the specified files by replacing the first occur‐
13 rence of expression in their name by replacement.
14
16 -v, --verbose
17 Give visual feedback which files where renamed, if any.
18
19 -V, --version
20 Display version information and exit.
21
22 -s, --symlink
23 Peform rename on symlink target
24
25 -h, --help
26 Display help text and exit.
27
29 Given the files foo1, ..., foo9, foo10, ..., foo278, the commands
30
31 rename foo foo0 foo?
32 rename foo foo0 foo??
33
34 will turn them into foo001, ..., foo009, foo010, ..., foo278. And
35
36 rename .htm .html *.htm
37
38 will fix the extension of your html files.
39
41 The renaming has no safeguards. If the user has permission to rewrite
42 file names, the command will perform the action without any questions.
43 For example, the result can be quite drastic when the command is run as
44 root in the /lib directory. Always make a backup before running the
45 command, unless you truly know what you are doing.
46
48 mmv(1), mv(1)
49
51 The rename command is part of the util-linux package and is available
52 from ftp://ftp.kernel.org/pub/linux/utils/util-linux/.
53
54
55
56util-linux June 2011 RENAME(1)