*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->Linux man pages -> rename (1)              



NAME    [Toc]    [Back]

       rename - renames multiple files

SYNOPSIS    [Toc]    [Back]

       rename [ -v ] perlexpr [ files ]

DESCRIPTION    [Toc]    [Back]

       "rename" renames the filenames supplied according to the rule specified
       as the first argument.  The perlexpr argument is a Perl expression
       which is expected to modify the $_ string in Perl for at least some of
       the filenames specified.  If a given filename is not modified by the
       expression, it will not be renamed.  If no filenames are given on the
       command line, filenames will be read via standard input.

       For example, to rename all files matching "*.bak" to strip the extension,
 you might say

	       rename 's/\e.bak$//' *.bak

       To translate uppercase names to lower, you'd use

	       rename 'y/A-Z/a-z/' *

OPTIONS    [Toc]    [Back]

       -v      Verbose: print names of files successfully renamed.

ENVIRONMENT    [Toc]    [Back]

       No environment variables are used.

AUTHOR    [Toc]    [Back]

       Larry Wall

SEE ALSO    [Toc]    [Back]

       mv(1), perl(1)

DIAGNOSTICS    [Toc]    [Back]

       If you give an invalid Perl expression you'll get a syntax error.

BUGS    [Toc]    [Back]

       The original "rename" did not check for the existence of target filenames,
 so had to be used with care.  I hope I've fixed that (Robin

3rd Berkeley Distribution	  2004-12-24			     RENAME(1)
[ Back ]
 Similar pages
Name OS Title
debconf-mergetemplate Linux merge together multiple debconf template files
rdist Tru64 Maintains identical copies of files on multiple hosts
asort Tru64 Sorts or merges files and supports multiple collating weight sequences
sprodm1du IRIX Compute the product of Multiple 1D Fourier transforms with Multiple 1D filters.
cprodm1d IRIX Compute the product of Multiple 1D Fourier transforms with Multiple 1D filters.
tsarchive IRIX renames log file
pxfrename IRIX Renames a file
mvdir Tru64 Moves (renames) a directory
mountall IRIX mount multiple filesystems
mswapbuffers IRIX swap multiple framebuffers simultaneously
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service