chinobling
Technical User
Hi,
I'm trying to write a script to find directories/subdirectories with a certain pattern in the name, then replace the pattern in the directory name.
I figured out how to find them using find $1 -type d -name "*$2*" but it's the replacing that's giving me a migraine... please help!
TIA.
I'm trying to write a script to find directories/subdirectories with a certain pattern in the name, then replace the pattern in the directory name.
I figured out how to find them using find $1 -type d -name "*$2*" but it's the replacing that's giving me a migraine... please help!
TIA.