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

Tim Evans tkevans at oss670.UUCP
Sat Mar 16 00:18:19 AEST 1991


I would like to be able to insert blank lines at regular intervals
in a structured file.  Specifically, I want to place a blank line after
every third line in my input file.  Every third line in the input file
begins with a specific character string.

Here is an example input file:

Name: data ...
Addr: data ...
Phone: data ...
Name: data ...
Addr: data ...
Phone: data ...

What I want as output is:

Name: data ...
Addr: data ...
Phone: data ...

Name: data ...
Addr: data ...
Phone: data ...

If you reply via E-Mail, please use the address *BELOW*.

Thanks.
-- 
INTERNET	tkevans%woodb at mimsy.umd.edu
UUCP 		...!{rutgers|ames|uunet}!mimsy!woodb!tkevans
US MAIL		6401 Security Blvd, 2-Q-2 Operations, Baltimore, MD  21235	
PHONE		(301) 965-3286



More information about the Comp.unix.questions mailing list