PROBLEM: 'sed' script 's/^ /\n/' not working properly

PROBLEM: 'sed' script 's/^ /\n/' not working properly

Post by roger m squir » Fri, 25 Mar 1994 06:24:44



I want to use a sed script to replace two spaces at the
beginning of a line with a return character.

        s/^  /\n/

does not work in BSD sed (it writes out an 'n', not a newline)
but does in the MSDOS sed I have.  What am I doing wrong?

rms