Script for replacing a string in multiple files

for y in `ls | grep .html`;
do sed “s/abc/xyz/g” $y > temp; mv -f temp $y;
done

One thought on “Script for replacing a string in multiple files

Leave a comment