I am looking for a tool/command to delete string "http://" from all files within a directory. I am using the following command on my MacOS but am not able to accomplish the task.
grep -lr --exclude-dir=".git" -e "http://" . | xargs sed -i "" "s/"http:\/\/"//g"
I get the following error on command line:
sed: RE error: illegal byte sequence
Please help. Thanks in advance.