Linked Questions

2 votes
2 answers
621 views

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 ...
HSchmale's user avatar
  • 427
2 votes
0 answers
133 views

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: ...
rahmu's user avatar
  • 20.6k
0 votes
0 answers
32 views

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 ...
Sm D's user avatar
  • 1
56 votes
8 answers
33k views

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? ...
KM.'s user avatar
  • 2,284
38 votes
9 answers
43k views

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 ...
Andreas's user avatar
  • 441
33 votes
5 answers
26k views

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 ...
mike3996's user avatar
  • 1,609
9 votes
4 answers
35k views

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 ...
pfnuesel's user avatar
  • 6,293
9 votes
3 answers
4k views

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. ...
user1769197's user avatar
2 votes
3 answers
5k views

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 ...
NoExpert's user avatar
  • 499
4 votes
2 answers
2k views

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 ...
tmow's user avatar
  • 1,265
2 votes
1 answer
509 views

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 ...
Alexander Mills's user avatar
1 vote
1 answer
590 views

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 ...
Kyrela's user avatar
  • 41
2 votes
1 answer
137 views

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, ...
XDR's user avatar
  • 471
2 votes
0 answers
234 views

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 ...
hoefling's user avatar
  • 896
2 votes
0 answers
113 views

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 ...
Sniggerfardimungus's user avatar