News for hackers. Stuff that matters.
Re:Show HN: *nixy filter to color stdout, by rows or space-s... by devnonymous on Friday March 17, 2017 @05:22PM (#13898110)
I created this script a few days ago and it has proved it be quite useful. It isn't polished (ie: no doc, tests ..not even 'standard' arg parsing) but it has made debugging and reading logs so much easier that I thought I just had to share it. Comments and PRs welcome.

PS: note, feel free to fork and make it 'Enterprise ready', if you are inclined to but I will be very reluctant to add bloaty ^features^ to this.

Re:Show HN: *nixy filter to color stdout, by rows or space-s... by devnonymous on Saturday March 18, 2017 @01:28PM (#13902384)
Just added an update to the script. Now you can also specify the colors to use. Oddly enough the asciinema demo thumbnail is no longer rendering correctly on the github readme. Please click on the link to see the demo.
Re:Show HN: *nixy filter to color stdout, by rows or space-s... by basename on Friday March 17, 2017 @07:42PM (#13898947)
I've been looking for a simple way to separate commands from their arguments, in 'history' output. Aliased.

    [ -x $HOME/bin/colorize.py ] && alias h="history | colorize.py 4"
Re:Show HN: *nixy filter to color stdout, by rows or space-s... by ninju on Friday March 17, 2017 @07:22PM (#13898822)
Cool tool... One small hiccup that I saw in the demo when listing files in 'alternate' mode, when the last row was gray the background showed 'black' after the last characters
Re:Show HN: *nixy filter to color stdout, by rows or space-s... by devnonymous on Saturday March 18, 2017 @01:40PM (#13902462)
Thanks ! I'm glad you liked it. I think might be some sort of artifact of the asciinema rendering the screencast. I don't see that in the terminal.
Re:Show HN: *nixy filter to color stdout, by rows or space-s... by lousken on Saturday March 18, 2017 @02:50PM (#13902836)
that tail looks very useful, thanks!