Rename, change file name, even multiple files

If you use “rename“, you don’t need to make shell script anymore for changing file name anymore !!

Usage>

$ rename oldname newname *.files

 

Example>

there are lot of files..

> mother_1.nc father_2.nc brother_3.nc sister_4.nc …

you want to change mother, father, brother, and sister in filename to family.

Let’s do this!

$ rename *_*.nc family_*.nc *.nc

then, you can see this result,

> family_1.nc family_2.nc family_3.nc family_4.nc

Done!

 

So, Simple 🙂

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s