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