in reply to Too many pipes?

Presumably a buffering issue...  (i.e., grep doesn't output anything before its buffer has filled up).

If your grep supports the option, you might want to try

... | grep --line-buffered ...

(See also Re^2: Reading from a command pipe )

Another solution would be to implement the grepping in Perl, and do away with the system grep altogether.

Replies are listed 'Best First'.
Re^2: Too many pipes?
by kc6ovd (Acolyte) on Feb 10, 2012 at 22:02 UTC
    Eliya, You hit it. Unfortunatly my grep does not support the --line-buffered option. I think letting perl do it might be the way to go. I will have to check to see how much I will have to change in this code. Thanks for the suggestions. -Kevin