I got it thanks jim :)
On Wed, Jun 25, 2014 at 7:12 PM, Jim Gibson <j...@gibson.org> wrote: > > On Jun 25, 2014, at 12:11 AM, Uday Vernekar <vernekaru...@gmail.com> > wrote: > > > Dear Ron, > > You are better off addressing your questions to the entire mailing list, > rather than asking information from one person. Ron is not obligated to > help you and may not be available, but others may be willing to help you. > > > How wud i grep the string | 72| Traffic Test | 1| > 561| from log file which is Very large. > > You would: > > 1. open the file for reading > 2. read each line in the file > 3. check each line for your desired pattern > > That is what grep does. By doing this in Perl, you save having to create > another process. You can combine the step of finding the pattern and > extracting information from the desired line. You can also quit after you > have found the line you are seeking, if you only need to find one match; > grep will continue to read the rest of the file looking for more matches. > > Let us know if you have problems with any of these steps. > > > -- > To unsubscribe, e-mail: beginners-unsubscr...@perl.org > For additional commands, e-mail: beginners-h...@perl.org > http://learn.perl.org/ > > > -- ********************************************************* Don't ask them WHY they hurt you, because all they'll tell you is lies and excuses. Just know they were wrong, and try to move on. **********************************************************