Inserting Blank Line into File (sed/awk/?)

Blair P. Houghton bhoughto at hopi.intel.com
Sun Mar 17 00:59:46 AEST 1991


In article <ED.91Mar15201957 at lvw6.lvw.loral.com> ed at lvw6.lvw.loral.com (Ed Allen) writes:
>Now for the 'sed' solution....
>sed -n -e '{N;N;p;a\
>
>}' filename
>Should work from 'sh', 'csh' is more particular about multi-line
>arguments.

Csh(1) version:

sed -n '{N;N;p;a\\
\
}' filename

				--Blair
				  "Picky, picky."



More information about the Comp.unix.questions mailing list