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
1.4m articles
1.4m replys
5 comments
57.0k users