December 15, 2016

hgrep.sh

Here is a little script that highlights multiple egrep search terms in different colors. It pipes multiple greps together. Be careful, if you give it a search term that happens to match the escape sequences for ANSI color, you might get unexpected results.

There are a number of tools that already do this: ack, ccze. This just needs bash (maybe even other shells) and grep. I was aiming for portability; no need for compiling, perl, ruby, python, <insert runtime here>. Got the idea here.


Previous post
Oh yeah, I’m on a podcast Blog is back! Trying this theme. Check Dave and I out on our podcast about Apple stuff. Here
Next post
Minecraft server connected Raspberry Pi clock With just a glance, I know the time, just like a clock in an item frame. sun/moon’s position moon’s phase (the brighter the more full) sky color,