grep | sed do not function inline?
- From: bilbo <bilbo@xxxxxxxxxxxxx>
- Date: Mon, 23 Apr 2007 01:13:57 +0200
Hi all,
Recently I faced a strange behaviour of the Linux commands. I have a
log file which contains a lot of information. I wanted to extract some
informations out of it. But when I tried to
tail -f mylog | grep 'smtg' | sed -n 's/end/notend/p'
no output could be found. Which was quite surprising since the
following tests did their job without any problem:
tail -f mylog | grep 'smtg'
tail -f mylog | sed -n 's/end/notend/p'
tail -200 mylog | grep 'smtg' | sed -n 's/end/notend/p'
So, of course, to achieve this result I simply went for perl. But can
anyone tell me what is the reason why this didn't work?
Thanks,
Tudi.
--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx
- Follow-Ups:
- Re: grep | sed do not function inline?
- From: nicholas
- Re: grep | sed do not function inline?
- From: Mike Bird
- Re: grep | sed do not function inline?
- From: Tyler Smith
- Re: grep | sed do not function inline?
- Prev by Date: Re: Exim4 EHLO/STARTTLS/AUTH and buggy client
- Next by Date: Re: incorrect times displayed
- Previous by thread: New HDD install weirdness? (dd)
- Next by thread: Re: grep | sed do not function inline?
- Index(es):
Relevant Pages
|
|