Timeline for Print something to both STDOUT and STDERR (without redirecting both to same file)
Current License: CC BY-SA 4.0
5 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Dec 11, 2022 at 21:14 | comment | added | Arnaud Valmary | @becko date | tee /dev/stderr do not redirect the command (date) error output to the pipe | |
| Dec 11, 2022 at 20:35 | comment | added | a06e | @glennjackman why not tee >(cat 1>&2) ? (from stackoverflow.com/a/20553986/855050) The 1 is not needed? | |
| Dec 11, 2022 at 17:02 | comment | added | glenn jackman | slight variation: date | tee >(cat >&2) | |
| Dec 11, 2022 at 16:20 | comment | added | a06e | Thanks. But isn't this the same as date | tee /dev/stderr ? It seems simpler! | |
| Dec 11, 2022 at 15:45 | history | answered | Arnaud Valmary | CC BY-SA 4.0 |