Rename command

Rename it’s handy command from util-linux package when you need to rename multiple files. From the manual:

NAME
       rename - Rename files
SYNOPSIS
       rename from to file...
DESCRIPTION
       rename will rename the specified files
       by replacing the first occurrence of
       from in their name by to.
...

Example usage:

[vitalie@silver london]$ ls -1
DSC00967.JPG
DSC00968.JPG
DSC00969.JPG
DSC00970.JPG
DSC00971.JPG
[vitalie@silver london]$ rename DSC00 london_ *.JPG
[vitalie@silver london]$ ls -1
london_967.JPG
london_968.JPG
london_969.JPG
london_970.JPG
london_971.JPG

0 comments ↓

There are no comments yet...Kick things off by filling out the form below.

Leave a Comment