How do I replace foo. with foo_ with sed simply running
sed 's/foo./foo_/g' file.php
doesn't work. Thanks!
Escape the .:
.
Example:
~$ cat test.txt foo.bar ~$ sed 's/foo./foo_/g' test.txt foo_bar
2.1m questions
2.1m answers
60 comments
57.0k users