Jun 26, 2003 #1 mjuell Programmer Jun 26, 2003 17 NO I want do delete the lines from a file where column 1 matches an exact pattern. ( I want to delete the lines where column 1=123, not the lines where its 21234 ) Please Help!....
I want do delete the lines from a file where column 1 matches an exact pattern. ( I want to delete the lines where column 1=123, not the lines where its 21234 ) Please Help!....
Jun 26, 2003 #2 Ygor Programmer Feb 21, 2003 623 GB Try... awk '$1 != "123"' file1 > file2 Upvote 0 Downvote
Jun 26, 2003 #3 PHV MIS Nov 8, 2002 53,708 FR Try this: Code: grep -v '^123' input >output Hope This Help PH. Upvote 0 Downvote
Jun 27, 2003 Thread starter #4 mjuell Programmer Jun 26, 2003 17 NO Thanx... it worked with grep -v '^123+RS' input >output Upvote 0 Downvote