1 .\" Written by Andries E. Brouwer (aeb@cwi.nl)
2 .\" Placed in the public domain
4 .TH RENAME 1 "June 2011" "util-linux" "User Commands"
9 .RI [ options ] " expression replacement file" ...
12 will rename the specified files by replacing the first occurrence of
18 \fB\-v\fR, \fB\-\-verbose\fR
19 Give visual feedback which files where renamed, if any.
21 \fB\-V\fR, \fB\-\-version\fR
22 Display version information and exit.
24 \fB\-s\fR, \fB\-\-symlink\fR
25 Peform rename on symlink target
27 \fB\-h\fR, \fB\-\-help\fR
28 Display help text and exit.
31 .IR foo1 ", ..., " foo9 ", " foo10 ", ..., " foo278 ,
42 .IR foo001 ", ..., " foo009 ", " foo010 ", ..., " foo278 .
47 rename .htm .html *.htm
51 will fix the extension of your html files.
53 The renaming has no safeguards. If the user has permission to rewrite file names,
54 the command will perform the action without any questions. For example, the
55 result can be quite drastic when the command is run as root in the /lib
56 directory. Always make a backup before running the command, unless you truly
57 know what you are doing.
63 all requested rename operations were successful
66 all rename operations failed
69 some rename operations failed
75 unanticipated error occurred
81 The rename command is part of the util-linux package and is available from
82 ftp://ftp.kernel.org/pub/linux/utils/util-linux/.