Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!aplcen!wb3ffv!oss670!tkevans From: tkevans@oss670.UUCP (Tim Evans) Newsgroups: comp.unix.questions Subject: Inserting Blank Line into File (sed/awk/?) Message-ID: <807@oss670.UUCP> Date: 15 Mar 91 14:18:19 GMT Organization: Social Security Admin., Baltimore/Washington Lines: 32 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@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