I'm trying to rename files that were copied from one moiunt point (DISK1) to another (DISK2). There are many subdirectories that reside under the mount points. Each directory has files with the a similar naming convention (ie. xxxDISK1xxx).
The problem is, if I copy all these file to a new mount point (say DISK2). I have to rename all the files by hand (xxxDISK1XXX -> xxxDISK2xxx).
Ideally, if I can get a script that can take the old name, new name and the full path of the directory affected, that would change the names of all the file, it would be great.
(ie. rename_all.sh -o DISK1 -n DISK2 -d /home/test/DISK2)
Speediness (but also correctness) will be reward with more points.
Please write back with comments if you are unclear about anything.
Also please post as comments first untill I accept. So the question doesn't get locked.