File: rename.1

package info (click to toggle)
loop-aes-utils 2.12r-15%2Betch1
  • links: PTS
  • area: main
  • in suites: etch
  • size: 8,876 kB
  • ctags: 5,077
  • sloc: ansic: 46,163; sh: 11,326; makefile: 886; perl: 86; csh: 62; sed: 55
file content (41 lines) | stat: -rw-r--r-- 714 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
.\" Written by Andries E. Brouwer (aeb@cwi.nl)
.\" Placed in the public domain
.\"
.TH RENAME 1 "1 January 2000" "" "Linux Programmer's Manual"
.SH NAME
rename \- Rename files
.SH SYNOPSIS
.BI rename " from to file..."
.SH DESCRIPTION
.B rename
will rename the specified files by replacing the first occurrence of
.I from
in their name by
.IR to .

For example, given the files
.IR foo1 ", ..., " foo9 ", " foo10 ", ..., " foo278 ,
the commands

.RS
.nf
rename foo foo0 foo?
rename foo foo0 foo??
.fi
.RE

will turn them into
.IR foo001 ", ..., " foo009 ", " foo010 ", ..., " foo278 .

And
.RS
.nf
rename .htm .html *.htm
.fi
.RE

will fix the extension of your html files.

.SH "SEE ALSO"
.BR mmv (1),
.BR mv (1)