[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 08:30:01 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.1 |
On 2/9/22 04:27, Nikos Papaspyrou wrote:
> Notice that the LOG file contains more than can be seen in the standard
> output. Three lines were printed with progress information, each starting
> with a carriage return character (0d). Only the last one remained and can
> be seen in the standard output. This is frustrating if one needs to edit
> or otherwise process the LOG file.
What's wrong with
$ tr -d '\r' < LOG
or
$ tr '\r' '\n' < LOG
to show the output on the terminal later again?
> More specifically, lines ending with carriage return are sent to the
> standard output but not to the files.
-1
IMO it's not tee(1)'s business to modify the content it is streaming.
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 <=
- 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, 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