November 2009 Archives

highlight.pl

This is a script I've wanted to share for a while, but I haven't yet had the chance to figure out how to write App::Highlight (if anybody could give me some pointers in this direction it would be much appreciated!)

highlight.pl is designed to be piped into, like grep or ack, but instead of filtering out lines which don't match it just highlights words which do, similar to "ack --passthru" except that you get different coloured highlights for your different matches.


#!/usr/bin/perl

#
# pipe text to highlight.pl to highlight certain words/users/alex_balhatchet/2009/11/index.html

About Alex Balhatchet

user-pic CTO at Lokku Ltd.