We have an environment named MX11, where we are planning to change the environment name with Q1_MX11.
Because of this, all files inside MX11 directory needs to be renamed. I need to change all the files or directories that have the name MX11 to Q1_MX11. please help me with a script to change all the directories or files under home\MX11.
for fname in `find $SEARCH_DIR -name “*$SEARCH_STR*”`
nfname=`echo $fname | sed “s/$SEARCH_STR/$REPLACE_STR/g”`
echo “$fname is changed to $nfname”