Re: multiple pipes and tail -f
- From: hatespam@xxxxxxxxxxxx (Pipe Dope)
- Date: Wed, 22 Aug 2007 21:51:36 GMT
pvsnmp@xxxxxxxxx wrote:
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.
You might be running into buffering issues.
Try "grep --line-buffered"
More at: http://www.pixelbeat.org/programming/stdio_buffering/
.
- Follow-Ups:
- Re: multiple pipes and tail -f
- From: pvsnmp
- Re: multiple pipes and tail -f
- References:
- multiple pipes and tail -f
- From: pvsnmp
- multiple pipes and tail -f
- Prev by Date: Re: How to temporarily disable the keyboard
- Next by Date: Re: Is there a pstack for Linux?
- Previous by thread: Re: multiple pipes and tail -f
- Next by thread: Re: multiple pipes and tail -f
- Index(es):
Relevant Pages
|