Replace some simple text in a file  

I made a post asking how to take a text file and make a simple replacement on it.

The best solution I found was to use perl:

perl -pi -e "s/search/replace/g" /tmp/foo.txt
Leave A Reply
All content licensed under the Creative Commons License