Upload Tizen:Base source
[framework/base/util-linux-ng.git] / misc-utils / rename.1
1 .\" Written by Andries E. Brouwer (aeb@cwi.nl)
2 .\" Placed in the public domain
3 .\"
4 .TH RENAME 1 "1 January 2000" "" "Linux Programmer's Manual"
5 .SH NAME
6 rename \- Rename files
7 .SH SYNOPSIS
8 .B rename
9 .IR  "from to file" ...
10 .br
11 .B rename -V
12 .SH DESCRIPTION
13 .B rename
14 will rename the specified files by replacing the first occurrence of
15 .I from
16 in their name by
17 .IR to .
18
19 .TP
20 .BR \-V , " \-\-version"
21 Display version information and exit.
22 .TP
23
24 For example, given the files
25 .IR foo1 ", ..., " foo9 ", " foo10 ", ..., " foo278 ,
26 the commands
27
28 .RS
29 .nf
30 rename foo foo0 foo?
31 rename foo foo0 foo??
32 .fi
33 .RE
34
35 will turn them into
36 .IR foo001 ", ..., " foo009 ", " foo010 ", ..., " foo278 .
37
38 And
39 .RS
40 .nf
41 rename .htm .html *.htm
42 .fi
43 .RE
44
45 will fix the extension of your html files.
46
47 .SH "SEE ALSO"
48 .BR mmv (1),
49 .BR mv (1)
50 .SH AVAILABILITY
51 The rename command is part of the util-linux-ng package and is available from
52 ftp://ftp.kernel.org/pub/linux/utils/util-linux-ng/.