Re: python grep

2010-04-09 Thread Peter Otten
Mag Gam wrote: > I am in the process of reading a zipped file which is about 6gb. > > I would like to know if there is a command similar to grep in python > because I would like to emulate, -A -B option of GNU grep. > > Lets say I have this, > > 083828.441,AA > 093828.441,AA > 094028.441,AA > 0

Re: python grep

2010-04-08 Thread Stefan Behnel
Mag Gam, 08.04.2010 14:21: On Thu, Apr 8, 2010 at 7:31 AM, Stefan Behnel wrote: Mag Gam, 08.04.2010 13:21: I am in the process of reading a zipped file which is about 6gb. I would like to know if there is a command similar to grep in python because I would like to emulate, -A -B option of GNU

Re: python grep

2010-04-08 Thread Mag Gam
Oh, thats nice to know! But I use the CSV module with gzip module. Is it still possible to do it with the subprocess? On Thu, Apr 8, 2010 at 7:31 AM, Stefan Behnel wrote: > Mag Gam, 08.04.2010 13:21: >> >> I am in the process of reading a zipped file which is about 6gb. >> >> I would like to k

Re: python grep

2010-04-08 Thread Stefan Behnel
Mag Gam, 08.04.2010 13:21: I am in the process of reading a zipped file which is about 6gb. I would like to know if there is a command similar to grep in python because I would like to emulate, -A -B option of GNU grep. Lets say I have this, 083828.441,AA 093828.441,AA 094028.441,AA 094058.441