[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: tee: add --remove-cr option
From: |
Bernhard Voelker |
Subject: |
Re: tee: add --remove-cr option |
Date: |
Wed, 9 Feb 2022 21:43:21 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.1 |
On 2/9/22 20:14, Nikos Papaspyrou wrote:
> [...] I want the input
> (or the contents of FILE) to go to the standard output untouched. The
> filtered input should only go to FILE1 and FILE2.
So the original example is possible with the process substitution you already
mentioned, e.g. with tr(1):
$ dd if=/dev/random of=/dev/null bs=1M count=1000 status=progress \
|& tee >(tr '\r' '\n' > LOG)
or with sed(1):
$ dd if=/dev/random of=/dev/null bs=1M count=1000 status=progress \
|& tee >( sed 's/\r/\n/g' > LOG)
Have a nice day,
Berny
- tee: add --remove-cr option, Nikos Papaspyrou, 2022/02/09
- tee: add --remove-cr option, Nikos Papaspyrou, 2022/02/09
- Re: tee: add --remove-cr option, Bernhard Voelker, 2022/02/09
- Re: tee: add --remove-cr option, Nikos Papaspyrou, 2022/02/09
- Re: tee: add --remove-cr option, Nikos Papaspyrou, 2022/02/09
- Re: tee: add --remove-cr option, Rob Landley, 2022/02/09
- Re: tee: add --remove-cr option, Nikos Papaspyrou, 2022/02/09
- Re: tee: add --remove-cr option,
Bernhard Voelker <=
- Re: tee: add --remove-cr option, Nikos Papaspyrou, 2022/02/09
- Re: tee: add --remove-cr option, Rob Landley, 2022/02/09