reference, tutorial, tutorials, help, example, photoshop, html, php, mysql, 3d software, internet, graphics, programming, multimedia

Mass rename [1/1]

Type: Code reference, tutorial, tutorials, help, example, photoshop, html, php, mysql, 3d software, internet, graphics, programming, multimedia
Mass rename
Level: Beginner reference, tutorial, tutorials, help, example, photoshop, html, php, mysql, 3d software, internet, graphics, programming, multimedia 
Mass rename
Date: 2007-Feb-10
Mass rename
Visited: 1302 times
Mass rename
Rating: Mass rename
Mass rename
Author: Tony Potter
This tutorial will show you how, with one raw command to rename multiple files using bash scripting.
It is written for Linux/Unix bash shell and will be useful when you want to rename files with same extension.

Here is the syntax of the string:

for i in * ; do mv "$i" `basename "$i" .ext1`.ext2 ; done
This line all will change all files with extension 'ext1' to 'ext2' .

The next example will convert all '.JPG' files to '.jpg' .It is really useful when you have moved files from Windows OS where the case of the extensions does not matter, but under Unix/Linux will be a problem if you are managing many files, like in galleries, photo albums etc.

for i in * ; do mv "$i" `basename "$i" .JPG`.jpg ; done
Rate this tutorial:                    
reference, tutorial, tutorials, help, example, photoshop, html, php, mysql, 3d software, internet, graphics, programming, multimedia - Mass rename [1/1] - reference, tutorial, tutorials, help, example, photoshop, html, php, mysql, 3d software, internet, graphics, programming, multimedia

Need a specific tutorial? Do not hesitate and submit a request!
Related Tags: mass rename  how to rename files in mass  mass rename shell  bash mass rename  unix mass rename  mass rename bash  mass rename + linux  unix mass rename shell  linux mass rename bash  mass rename files bash  bash mass rename files  mass rename unix bash  mass rename files unix  how to mass rename files under shell  unix rename files in mass  shell scripting mass rename  shell scripting mass rename  mass rename extensions linux  mass rename files in linux  unix tutorial rename mass