Linked Questions
15 questions linked to/from Can I configure my shell to print STDERR and STDOUT in different colors?
2 votes
2 answers
621 views
Is there a way to colorize output per stream from a program [duplicate]
I'm looking for a method to have bash colorize the output from a command based on what stream it was written to the terminal from. Is there any way to get it to colorize per stream? Like for example ...
2 votes
0 answers
133 views
Is it possible to modify the colors in bash? [duplicate]
Possible Duplicate: Is it possible to configure Bash so that STDERR can be a different color than STDOUT? In bash, the only color I know how to modify is the prompt, using \[ and \]. From the man: ...
0 votes
0 answers
32 views
how to change error (std-err) color [duplicate]
Because standard error is a separate device in UNIX-like environments, and programs or shell scripts can redirect their errors to it, it would be logical to configure terminals (any displayer) to ...
56 votes
8 answers
33k views
How to tell if output of a command or shell script is stdout or stderr
Let us say I run a command or shell script, and it gives me output. Without knowing the internals of this command or shell script, how does one determine if is the output was from stderr or stdout? ...
38 votes
9 answers
43k views
Show only stderr on screen but write both stdout and stderr to file
How can I use BASH magic to achieve this? I want to only see stderr output on the screen, but I want both stdout and stderr to be written to a file. Clarification: I want both stdout and stderr to ...
33 votes
5 answers
26k views
Can zsh access the stdout of last run program?
I often use find or locate to find out about paths. (~) locate foobar.mmpz /home/progo/lmms/projects/foobar.mmpz The next step is often to open or otherwise manipulate the files. In a happy case like ...
9 votes
4 answers
35k views
Write to stderr
I'm using stderred to color all output streamed to stderr red. It's working fine. But when I write my own bash script and throw an error with echo 'error' 1>&2, it doesn't color the output in ...
9 votes
3 answers
4k views
How to permanently change both STDOUT and STDERR color to grey?
This question is similar to Can I configure my shell to print STDERR and STDOUT in different colors? But I am looking for a solution that will allow me to change both STDOUT and STDERR to ONE color. ...
2 votes
3 answers
5k views
How can I convert to uppercase stderr output but not stdout?
I'm using rsync to backup some files: rsync -PaSh --stats --delete -e "-i key -p XXXX" "/source/" [email protected]:/destination/ 2> output.txt | grep -e 'bytes received' -e 'total bytes' -e ...
4 votes
2 answers
2k views
KSH styling text based menu using STDERR
Is it possible to format the STDERR in order to have a better looking menu using the select command? I have a simple select select oChoice in $(<tempMenu.menu) ; do case "$oChoice" in ...
2 votes
1 answer
509 views
Send stderr to a different receiver in pipe
Right now I have this: echo "$run_test" | bash 2>&1 | prepend "r2g-test:" "yellow"; What this does is prepend "r2g-test:" to each line of the stdout/stderr. Because I am sending stderr to ...
1 vote
1 answer
590 views
Configure zsh to display my stdin in green
I wanted a simple way of displaying errors in red, and inputs in green in zsh. I found this response, that works well, but it doesn't implement the input color. I'm not really a unix developper, so I ...
2 votes
1 answer
137 views
In zsh, annotate each line in a file to which both stdout and stderr have been redirected with the line's source (stdout or stderr)
In zsh, how can I annotate each line in a file to which both stdout and stderr have been redirected with the line's source (stdout or stderr)? I want output with the source name prepended to the line, ...
2 votes
0 answers
234 views
Color rm -i prompt messages
I'm looking for a way to apply custom colors to messages emitted by the rm -i command: ~ $ rm -i file.txt rm: remove regular empty file 'file.txt'? I understand that I need to redirect the stderr as ...
2 votes
0 answers
113 views
How can I regex match-and-replace _all_ on-screen text?
I need a way to replace an on-screen pattern with another string, regardless of what places that text on the screen. Maybe I can live without user input being replaced, but anything that comes from ...