UNIX Time!
Unix time = Good time!
Wednesday, June 11, 2008
Delete a line that has a particular string
Suppose I want to delete all the lines that have rakesh in them. Sed can come handy.
sed '/.*rakesh.*/d' old_file > new_file
Simple isn't it?
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment