sed to remove newlines?

Kevin Kuehl krk at cs.purdue.EDU
Sat Jun 1 03:08:46 AEST 1991


In article <1991May31.163100.20328 at cbnewsl.att.com> rbr at bonnie.ATT.COM (228-4197,ATTT) writes:
   Why not use "ed(1)" as:

   ....

If you want to double space, use sed or awk.  Both of these will do
the trick:

	$ sed G < input > output
	$ awk '{ print $0 "\n" }'
-- 
Kevin Kuehl
krk at cs.purdue.edu



More information about the Comp.unix.shell mailing list