Replacing text with sed

To replace all occurences of string1 in a file with string2 :

$ sed -ri "s|string1|string2|" some_file.txt



No Responses to “Replacing text with sed”  

Leave a Reply