in reply to Re: Perl = Greek to me
in thread Perl = Greek to me
Or rather, forget about Perl, and just use a shell one liner (again, untested):@ARGV = "filename.txt"; while (<>) { print if /ccParty<.+>DTMF<.+>/ && /_NN/; }
I am assuming your regexp is indeed what you want, I haven't checked whether it matches your description.$ grep 'ccParty<..*>DTMF<..*>' filename.txt | grep _NN
|
|---|