:: [DNG] OT: redirecting piped / proce…
Pàgina inicial
Delete this message
Reply to this message
Autor: Florian Zieboll
Data:  
A: [DNG]
Assumpte: [DNG] OT: redirecting piped / processed stderr to a file
Hallo list,

may I ask for support with redirecting piped / processed stderr to a file?

dd prints it's progress to stderr, I can redirect it to a file:
$ dd if=/dev/zero of=./zeroes bs=4M count=1000 status=progress 2> ./file

Now I want to get rid of the CR and can print to the console as expected:
$ dd if=/dev/zero of=./zeroes bs=4M count=1000 status=progress 2>&1 | tr '\r' '\n'

But if I redirect tr's output to a file (or pipe it otherwise), it "disappears": Empty console and empty file.
$ dd if=/dev/zero of=./zeroes bs=4M count=1000 status=progress 2>&1 | tr '\r' '\n' > ./file

Where is it going resp. how do I catch it?

Thanks a lot in advance!
Florian

--

[message sent otg]