How do I find and replace every occurrence of:
subdomainA.example.com
with
subdomainB.example.com
in eve
Using combination of grep and sed
grep
sed
for pp in $(grep -Rl looking_for_string) do sed -i 's/looking_for_string/something_other/g' "${pp}" done