Hi, I am looking for an efficient way to do consecutive grep's in perl, i. e. a possibility to resemble something like 'cat some_file | grep pattern1 | grep pattern2 | grep pattern3'.
I know I can do that as follows: @array = <SOME_FILE>; @res_grep1 = grep /pattern1/, @array; @res_grep2 = grep /pattern1/, @res_grep1; @res_grep3 = grep /pattern1/, @res_grep2; But that doesn't look to nice, especially when thinking about more grep statements. TIA Robert -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]