[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Nmh-workers] Inability to cat a Message Part.
From: |
David Levine |
Subject: |
Re: [Nmh-workers] Inability to cat a Message Part. |
Date: |
Sun, 28 Apr 2013 14:05:32 -0400 |
Ralph wrote:
> Hi David,
>
> > > > Though with mhstore -outfile - 2>/dev/null, that's not necessary.
> > >
> > > True, though I dislike discarding the known unknowns so tend to do
> > > more
> > >
> > > pick ... 2> >(sed '/^pick: no messages match specification$/d')
> > >
> > > to explicitly remove the known knowns. :-)
> >
> > I just tripped over that in the test, good idea.
>
> Ah, well in that case I should give the correct version; sed above will
> be putting out what was originally stderr on its stdout, which is pick's
> stdout. It's better with a `>&2'.
>
> $ ls -d / /known /unknown 2> >(sed '\#/known:#d' >&2) | sed 's/^/1:/'
> ls: cannot access /unknown: No such file or directory
> 1:/
> $
Thanks, but I used grep. I don't use sed unless I really have to :-)
David