Article View: comp.editors
Article #2961Re: How do I search for blank lines in vi?
From: Sridhar Venkataraman
Date: Tue, 05 Jan 1993 07:40
Date: Tue, 05 Jan 1993 07:40
12 lines
974 bytes
974 bytes
ttsai@crhc.uiuc.edu (Timothy Tsai) writes: )How can I search for blank lines using vi? By blank lines, I mean lines that )only have a CR. Is it possible, and is is the same for search and )search-and-replace? Please email me any help. Thanks. ^$ (caret followed by dollar) is the reg. exp. for a blank line. /^$ from vi should find it. For details, check out ed(1). Sridhar. -- Sridhar Venkataraman sridhar@asuvax.eas.asu.edu
Technical Details
Message-ID:
<1993Jan5.074028.17620@ennews.eas.asu.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!saimiri.primate.wisc.edu!ames!sun-barr!cs.utexas.edu!asuvax!ennews!newsReferences:
<1ibcb4INNg3f@haydn.crhc.uiuc.edu>Show Full Headers
Complete Article Headers
Newsgroups: comp.editors Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!saimiri.primate.wisc.edu!ames!sun-barr!cs.utexas.edu!asuvax!ennews!news From: sridhar@asuvax.eas.asu.edu (Sridhar Venkataraman ) Subject: Re: How do I search for blank lines in vi? Message-ID: <1993Jan5.074028.17620@ennews.eas.asu.edu> Sender: news@ennews.eas.asu.edu (USENET News System) Organization: ASU, Valley of the Sun(s), AZ References: <1ibcb4INNg3f@haydn.crhc.uiuc.edu> Distribution: inet Date: Tue, 5 Jan 1993 07:40:28 GMT Lines: 12