Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!cmcl2!adm!amsaa-cleo!mcohen From: mcohen@amsaa-cleo.brl.mil (Marty Cohen) Newsgroups: comp.editors Subject: Re: Global Empty Line Removal in vi? Summary: Regular Expression Message-ID: <481@amsaa-cleo.brl.mil> Date: 24 Jan 91 22:15:23 GMT References: <1991Jan24.064310.8077@midway.uchicago.edu> Distribution: na Organization: Army Materiel Systems Analysis Activity Lines: 12 To: zi0h@midway.uchicago.edu resulted in unknown user zi0h. :g/^ *$/d will delete all lines that consist of nothing but blanks. ^ means beginning of line, $ means end of line in regular expressions. -- Marty Cohen mcohen@brl.mil {uunet|rutgers}!brl!mcohen Custom House Rm 800, Phila. PA 19106 (215)597-8377 -- -- Marty Cohen mcohen@brl.mil {uunet|rutgers}!brl!mcohen Custom House Rm 800, Phila. PA 19106 (215)597-8377