for & sedfor F in * ; do mv “$F” `echo “$F” | sed ’s/{search_string}/{replace_string}/’ ` ; done
The other choice is to use the command 'mmv'. I never used it, but seems that it works.
for & sedfor F in * ; do mv “$F” `echo “$F” | sed ’s/{search_string}/{replace_string}/’ ` ; done
ls -R$ ls -R 'directory1' > ls_dir1
$ ls -R 'directory2' > ls_dir2
sed$ sed -e 's/directory1/diff_name/' ls_dir1 > ls_dir1_sed
$ sed -e 's/directory2/diff_name/' ls_dir2 > ls_dir2_sed
diff
$ diff ls_dir1_sed ls_dir2_sed | more