sed utility can be used to print the contents of a
file, substitute a line (or multiple lines), and then save the file. In
sed can substitute a line or multiple lines in a file and perform an in-place update of that file.
sed invocation when substituting
Continue reading “Manipulating text with sed”
$ sed 's/foo/bar/' inputfile