Reputation: 953
I was curious if there is a clean way to add line numbers to jq
's output while still retaining the coloring of the output. I have tried piping from jq
to cat -n
but unfortunately this removes the coloring which helps a lot when traversing the JSON tree.
Upvotes: 4
Views: 1737