coreutils
[Top][All Lists]
Advanced

[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



reply via email to

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