does vi have a search/deletion macro???
Scott "The Pseudo-Hacker" Neugroschl
abcscnge at csuna.csun.edu
Tue Sep 12 11:20:54 AEST 1989
In article <5285 at ucdavis.ucdavis.edu> lee at 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 at csuna.csun.edu
-- Beat me, Whip me, make me code in Ada
-- Disclaimers? We don't need no stinking disclaimers!!!
More information about the Comp.unix.questions
mailing list