multiple pipes and tail -f



Hi,
I have been trying to do the following but it doesn't seem to work.
tail -f <filename> | grep <some string> | grep <some other string>

where <filename> is the name of any file to which new lines are added,
something like a log file for example.
Is there some restriction on the number of pipes which could be used
while using tail -f ?
I would like use sed instead of the last grep in the example above,
but for simplicity I have used second grep.

Thanks and Regards,
Prashant

.



Relevant Pages

  • Re: multiple pipes and tail -f
    ... where <filename> is the name of any file to which new lines are added, ... while using tail -f? ... but for simplicity I have used second grep. ...
    (comp.unix.programmer)
  • multiple pipes and tail -f
    ... where <filename> is the name of any file to which new lines are added, ... while using tail -f? ... but for simplicity I have used second grep. ...
    (comp.unix.shell)
  • Re: multiple pipes and tail -f
    ... where <filename> is the name of any file to which new lines are added, ... but for simplicity I have used second grep. ... You might be running into buffering issues. ...
    (comp.unix.programmer)
  • Re: multiple pipes and tail -f
    ... where <filename> is the name of any file to which new lines are added, ... but for simplicity I have used second grep. ... any output until the buffers are full. ... Type louder, please. ...
    (comp.unix.shell)
  • Re: multiple pipes and tail -f
    ... something like a log file for example. ... but for simplicity I have used second grep. ... You might be running into buffering issues. ...
    (comp.unix.programmer)