The UNIX and Linux Forums
>
Top Forums
>
UNIX for Advanced & Expert Users
To remove the record from a 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
:
To remove the record from a file
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
2
(
permalink
)
12-17-2008
ynilesh
Registered User
Join Date: Oct 2007
Location: Bangalore, India.
Posts: 222
use -v option of grep.
- Put your data into file say "testfile".
-
Code:
grep -v "2|||" testfile
this should give output without "2|||".
$nilesh
ynilesh
View Public Profile
Visit ynilesh's homepage!
Find all posts by ynilesh
Find ynilesh's past nominations received
Find ynilesh's present nominations given