I have a large number of inputfile.txt files that looks like this:
I would like to SEARCH for the pattern 'abc' and insert a line 'xyz' such that outputfile.txt should now look like:
I'm reading thru: http://www.grymoire.com/Unix/Sed.html
but i'm having difficulties because the author suddenly switches his examples from the command line to shell script.
I want an example that works from the command line.
sed 'a/abc/xyz' < inputfile.txt > outputfile.txt
sed: command garbled: