help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to pipe just stderr to stdin in a pipeline?


From: Pier Paolo Grassi
Subject: Re: How to pipe just stderr to stdin in a pipeline?
Date: Sun, 10 May 2020 05:10:42 +0200

I would use:

{cmd1 3>&2 2>&1 1>&3 } | cmd2

Il giorno dom 10 mag 2020 alle ore 05:04 Peng Yu <address@hidden> ha
scritto:

> | pipes stdout to stdin in a pipeline
> |& pipes both stdout and stderr to stdin in a pipeline
>
> What is the best way to just pipe stderr (but not stdout) to stdin in
> a pipeline? Thanks.
>
> --
> Regards,
> Peng
>
>


reply via email to

[Prev in Thread] Current Thread [Next in Thread]