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?
Newer Posts
Older Posts
Home
Subscribe to:
Posts (Atom)