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 the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #3 (permalink)  
Old 03-13-2009
uniesh uniesh is offline
Banned
  
 

Join Date: Mar 2009
Posts: 16
vi

go to editor mode of vi and type :'g/outdated/d'. this wil delete all lines with the worh outdated.

You can also use :'1,10/outdated/d' to delete lines from 1 to 10 with the word outdated.