I'm trying to use sed to replace every instance of old in the file with new. Now it works with lowercase strings, but I need it to replace certain strings that are capitalized. For Example replace OLD with NEW. I know sed can do this, but I can't get it quite right?
for file in .; do cat $file sed 's/old/new/g' $file | tee $file done