How do I replace foo. with foo_ with sed simply running
sed \'s/foo./foo_/g\' file.php
doesn\'t work. Thanks!
For myself, sed 's/foo\./foo_/g' is working. But you can also try:
sed 's/foo\./foo_/g'
sed -e 's/foo\./foo_/g'
and
sed -e "s/foo\\./foo_/g"
sed 's/foo[.]/foo_/g'