grep -r -l --include=*.{html,js,css} "\bAA\b" . | xargs -0 -n 1 sed -i -e "s/\bAA\b/BB/g"
When I ran the above command, I got the following error:
sed: can't read ./login.html : No such file or directory
This is rather odd as I am able to vi ./login.html
I don't understand why am I getting this error. Please help. Thanks.