Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!apple!usc!csun!csuna!abcscnge From: abcscnge@csuna.csun.edu (Scott "The Pseudo-Hacker" Neugroschl) Newsgroups: comp.unix.questions Subject: Re: does vi have a search/deletion macro??? Message-ID: <2184@csuna.csun.edu> Date: 12 Sep 89 01:20:54 GMT References: <20802@adm.BRL.MIL> <5285@ucdavis.ucdavis.edu> <14154@bloom-beacon.MIT.EDU> Reply-To: abcscnge@csuna.csun.edu (Scott Neugroschl) Organization: CSU Northridge Lines: 15 In article <5285@ucdavis.ucdavis.edu> lee@iris.ucdavis.EDU (Peng Lee) writes: >I have a similar question: How do you delete a empty line using "sed" >or "ed" ? I have try the 'sed -e "/^$/d" filename ', but it doesn't work. You might want to try single quotes in the sed command, viz: sed -e '/^$/d' filename as double quotes will attempt to expand the $. -- Scott "The Pseudo-Hacker" Neugroschl abcscnge@csuna.csun.edu -- Beat me, Whip me, make me code in Ada -- Disclaimers? We don't need no stinking disclaimers!!!