If you use “rename“, you don’t need to make shell script anymore for changing file name anymore !!
$ rename oldname newname *.files
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
So, Simple 🙂