colout: Colorize on a whim

Not far off from codemetre, this is colout, which you might be able to ascertain on your own.

2013-09-25-v5-122p-colout

Pipe text through colout, and you can apply color to specific strings. It’s a very clever idea, and one I like a lot.

What you see above is a good example of what colout can do — find commented sections in code and highlight them.

In the most basic terms, just cat text.txt | colout word red bold will search for “word” in the file and paint it red where it is found.

Of course, that alone is possible just with grep --color, in a way. colout just gives a little more flexibility.

If it sounds like I like colout, you’re right. I’m willing to give this one a gold smiley: 😀