getting sed to put linefeed in output stream
Bill Michel
bm at bike2work.Eng.Sun.COM
Thu Oct 11 12:43:36 AEST 1990
I want to put a newline in my output with sed. Something like
sed "/NAME */NAME \n/" inputfile
in other words, replace each occurrence of NAME followed by one or more
spaces with NAME followed by a newline. \n doesn't quite seem to do
it, however, and I get a literal "n" in my output. I have been able
to embed a carriage return (^M) but not a linefeed (it doesn't show
up as a control character, but rather, breaks the line in the script.
HELP!
More information about the Comp.unix
mailing list