[wellylug] vi / ex question

Martin Bähr mbaehr at email.archlab.tuwien.ac.at
Mon Dec 13 12:04:21 NZDT 2004


On Tue, Dec 07, 2004 at 03:08:53PM +1300, Grant McLean wrote:
> > How can I delete every blank line in a file?
> :%!grep -v '^$'

heh, that's a funny one considering that the name grep is derived from
the ex command 
g/<re>/p

greetings, martin.
-- 
looking for a job doing pike programming, sTeam/caudium/pike/roxen training,
sTeam/caudium/roxen and/or unix system administration anywhere in the world.
--
pike programmer   travelling and working in europe            open-steam.org
unix system-      bahai.or.at                       iaeste.(tuwien.ac|or).at
administrator     (stuts|black.linux-m68k).org                  is.schon.org
Martin Bähr       http://www.iaeste.or.at/~mbaehr/




More information about the wellylug mailing list