To replace all occurences of string1 in a file with string2 :
$ sed -ri "s|string1|string2|" some_file.txt
Name (required)
Mail (won't be published) (required)
Website
Notify me of followup comments via e-mail
recurser is powered by WordPress RSS Entries and RSS Comments
No Responses to “Replacing text with sed”
Leave a Reply