Posts Tagged ‘rename’

Renaming multiple files with ‘rename’ command

Tuesday, June 10th, 2008


The syntax for the rename command is:

rename [ -v ] [ -n ] [ -f ] perl_expression [ files ]

to rename for example multiple photo files with ‘.JPG’ extension to ‘.jpg’ extension:

rename -v ’s/\.JPG$/\.jpg/’ *.JPG