DEV Community


Discussion on: jq hack #1: colored less

aakatev profile image

Great tip. I imagine it can also be used with other CLI tools dumping ANSI color codes.

sshine profile image
Simon Shine Author

Yes, definitely! This was inspired by another trick I did with ack some years ago:

What if, when you grep, it goes into pager mode when results don't fit one screen?

It means that the UNIX programs are designed well, in my opinion. :-)