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 |