The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 10-03-2007
kjbaumann kjbaumann is offline
Registered User
 

Join Date: Jun 2006
Posts: 49
I got it:

:g/outdated/d

This command tells vi to do a global search for "outdated" and to delete any line containing that text.

:g/out dated/d

This command tells vi to do a global search for "out dated" and to delete any line containing that text--including the space.
Reply With Quote