I tried the following script
cd pathname
for y in `ls *`;
do
sed 's_c:\mydocuments\pictures_d:/mypics/personal_' $y > temp; mv temp $y;
done
This script is working for all other paths mentioned with forward slash (i.e c:/mydocuments/pictures ).
As it has a back slash i need to save it with one more \ i.e \\ but using this is not working, instead getting Error (
sed garbled).
Any solutions ?