zsh-users
 help / color / mirror / code / Atom feed
From: Dominik Vogt <dominik.vogt@gmx.de>
To: dado <dado@pdi.com>, zsh-users@sunsite.auc.dk
Subject: Re: trouble with multiple pipes
Date: Thu, 17 Jun 1999 00:22:17 +0200	[thread overview]
Message-ID: <19990617002217.A2937@gmx.de> (raw)
In-Reply-To: <37680689.801EFB1E@pdi.com>; from dado on Wed, Jun 16, 1999 at 01:18:18PM -0700

On Wed, Jun 16, 1999 at 01:18:18PM -0700, dado wrote:
> Dominik Vogt wrote:
> 
> > (snip)
> 
> have you tried egrep ?

Yes, it works, but that doesn't really help since there are more
commands (other than grep) in the pipe I use. Anyway, I
solved the problem by writing a zsh script that does the filtering
with builtin commands :) (zsh is really *great*)

> # tail -f foo | egrep -v "5|4"
> 
> > And now I want to remove '4' from the output too:
> >
> >   # tail -f foo | grep -v 5 | grep -v 4
> >   (no output generated, pressed ^C)
> >
> > But when I terminate 'tail'
> >   # killall tail
> >   1
> >   2
> >   3
> >   zsh: terminated  tail -f foo |
> >   zsh: done        grep -v 5 | grep -v 4
> >
> > Why doesn't get the output of the first pipe get through to
> > the second one? Any ideas how to circumvent this problem?
> > Unfortunately I need to filter the output from a running
> > daemon in this way, but I'm out of ideas.
> >
> > The same behaviour occurs on HP-UX 10.20 (not that I think the
> > OS matters) or with ksh or bash.

Bye

Dominik ^_^

--
Dominik Vogt, dominik.vogt@gmx.de
Reply-To: dominik.vogt@gmx.de


      reply	other threads:[~1999-06-16 22:20 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-06-10  0:29 Dominik Vogt
1999-06-09 16:41 ` Andrej Borsenkow
1999-06-10  1:08   ` Dominik Vogt
1999-06-16 20:18 ` dado
1999-06-16 22:22   ` Dominik Vogt [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=19990617002217.A2937@gmx.de \
    --to=dominik.vogt@gmx.de \
    --cc=dado@pdi.com \
    --cc=zsh-users@sunsite.auc.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).