I made a typo
After should be:

After:
[start of file]
abcde XXX fghij YYY
klmno XXX pqrst YYY
&*()- XXX ,./;' YYY
[end of file]

Rgds,
Eric
From: "Eric Leenman" <[EMAIL PROTECTED]>
To: vim@vim.org
Subject: S&R
Date: Fri, 22 Sep 2006 11:59:59 +0000

Hi

I have a file where I deleted all lines that don't contain a certain pattern
For example I want to delete all lines that don't contain XXX and YYY.

Before:

[start of file]
abcde XXX fghij YYY
12345 AAA 67890 BBB
klmno XXX pqrst YYY
09876 XXX 54321 BBB
&*()- XXX ,./;' YYY
[end of file]

After:
[start of file]
abcde XXX fghij YYY
&*()- XXX ,./;' YYY
[end of file]


How do I do that?

Best Regards,

Eric

_________________________________________________________________
All-in-one security and maintenance for your PC. Get a free 90-day trial! http://clk.atdmt.com/MSN/go/msnnkwlo0050000001msn/direct/01/?href=http://www.windowsonecare.com/?sc_cid=msn_hotmail


_________________________________________________________________
Try the new Live Search today! http://imagine-windowslive.com/minisites/searchlaunch/?locale=en-us&FORM=WLMTAG

Reply via email to