help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to %g/notice/d


From: Kevin Rodgers
Subject: Re: how to %g/notice/d
Date: Fri, 16 Jul 2004 10:45:59 -0600
User-agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:0.9.4.1) Gecko/20020406 Netscape6/6.2.2

Chang PilHun wrote:
> I want to delete all lines that includes 'notice' string.
> in vim, I can do that by :%g/notice/d
>
> How to in emacs?

What could be more obvious than `M-x delete-matching-lines'?

Since vim/vi users love the sed syntax, you can always run sed on your
Emacs buffer like this:

C-x h   ; mark-whole-buffer
C-u M-| ; [replace region with output from] shell-command-on-region
sed '...' RET   ; e.g. /notice/d

--
Kevin Rodgers



reply via email to

[Prev in Thread] Current Thread [Next in Thread]