Wednesday, April 27, 2011

How to rename multple files at once in Linux

Suppose you have many html files which needs be backed up. In this case you can use the "rename" command.

# rename .html .html.bak  *.html

The above command will rename all the files which have extension .html to .html.bak in the current directory.

No comments:

Post a Comment