bash watch command with colors preserved

Posted by Pawel Goscicki on Super User See other posts from Super User or by Pawel Goscicki
Published on 2010-03-29T19:00:04Z Indexed on 2010/03/29 19:13 UTC
Read the original article Hit count: 405

Filed under:
|
|

From man watch:

Non-printing characters are stripped from program output. Use "cat -v" as part of the command pipeline if you want to see them.

So how do I use cat -v if I want to see the colored output from:

watch ls -al --color

© Super User or respective owner

Related posts about bash

Related posts about watch