04-27-2007
54,
0
Join Date: Aug 2006
Last Activity: 19 July 2007, 4:47 AM EDT
Posts: 54
Thanks Given: 0
Thanked 0 Times in 0 Posts
Grep solution
I have a file arg_file
a1, b1, c1...
a2, b2, c2...
a3, b3, c3...
a4, b4, c4...
a5, b5, c5...
a6, b6, c6...
a7, b7, c7...
a8, b8, c8...
a9, b9, c9...
I have another file pat_file
a2
a5
a9
I want to create an output file which does not contains the values found pat_file :
a1, b1, c1...
a3, b3, c3...
a4, b4, c4...
a6, b6, c6...
a7, b7, c7...
a8, b8, c8...
Currently I am using `grep -v -f pat_file arg_file > outputfile`. But this is taking very long to process ..is there an efficient soultion to this.
My files may contain peak time approx. 90K records too.
Thanks
Amruta