Sed

To replace all instances of search with replace throughout the file called filename:

“sed -i -e s/search/replace/g filename” to edit one in place
“cat filename | sed s/search/replace/g > /tmp/tmpfile ; mv /tmp/tmpfile filename”

About vicki

Welcome to the Sovereign Republic of Vickistan. I am the President here. Lucky me! No taxes or laws yet. Lucky you!
This entry was posted in Linux. Bookmark the permalink.