The UNIX and Linux Forums
>
Top Forums
>
UNIX for Dummies Questions & Answers
vi to remove lines in file
.
User Name
Remember Me?
Password
google unix.com
Forums
Register
Forum Rules
Links
Albums
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
vi to remove lines in file
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
3
(
permalink
)
03-13-2009
uniesh
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.
uniesh
View Public Profile
Find all posts by uniesh
Find uniesh's past nominations received
Find uniesh's present nominations given