Hi,
doing a recursive search through a folder and it's subfolder I want to rename special files, if found there.
Example:
folder1\afile.blah
folder1\afile1.bla
folder1\folder2\afile.blah
All those should be autom. renamed in changing the leading a to b:
folder1\bfile.blah
folder1\bfile1.bla
folder1\folder2\bfile.blah
I think the first part of the script could be a 'find folder1/. -name a*.blah -type f -exec script2 {} \;' while script2 can do the rename with awk? But I'm not sure how the awk commands must be use.
Can you help?
Axel
doing a recursive search through a folder and it's subfolder I want to rename special files, if found there.
Example:
folder1\afile.blah
folder1\afile1.bla
folder1\folder2\afile.blah
All those should be autom. renamed in changing the leading a to b:
folder1\bfile.blah
folder1\bfile1.bla
folder1\folder2\bfile.blah
I think the first part of the script could be a 'find folder1/. -name a*.blah -type f -exec script2 {} \;' while script2 can do the rename with awk? But I'm not sure how the awk commands must be use.
Can you help?
Axel