I’m toying around with a new Linux command-line tool called ack. It’s a replacement for the old standard, grep. Possibly the best feature I’ve found is the “bar” option, which does this:
# ack --bar ?IIIIIII7II?????+ ~III777II777I?+==++==+: ???I7I???I7II++=====++=== ??+??????????+===~~=+++??==+ ??+??II??????+==~=~~=+++++==++ I+?????????+?+====~=~==+==++?==? ?????II?????+++++=======?===~~~~== ,?????II????????++++====~===::~~~~:~ I?I??II?+++??+?+++==~~~~:~:~:,:,,:::~ I??????+==+???++++=~~:~:~:,:::,:,,,,,:: +I?++++=+=+????+++=~~:~~:::,,,,::,,,:,: I??+?+====+???+++===~~::::,::,:,,,,,,:: I????=~===++?+=+=~==~:~~:,,,,,,,.,,,,,:~ =??+?=~~~~??+?+===~~==,==~~~~,,,,..,,,.:= II++==~~=++++++=~~=~,~+=?+?=I?++=..,.,,: IIII?+?=====+~+++~=~~~:::=~+~===:,,,,,.,.:: I?=?I+??+=~=~?I?=+=~~~::,~~=~::~=::,,,,,,:: --------------- ?+I??++=++~,::+++~~~:::,,=~~=,~,..,::.: / It's a grep! / ++=+?++~=:~::I+,~=:~,:,,,,:~~......::~,,, --------------- ~=~=:.++~:,.,~=::::.,,:,.:~,:=...==~,:: / =~?++??+=~~,.:?~.:,:,,,.,::,,~:=~=::,~ / ++~~:~===~:~,.~::,~=~.:,..,:,,:==:.,:7 / ~~,::...:=:,::+:~:.,~,...,.,,,,::~,,::~= / =~===+=~~,.::,,,:::,..,,,,,,,,,,,:,..,=+? ~=~=~::~~~::,.,,,~:.+,..,,,,..,,,,...,+I? ~==~:~~:~~,~=~~:,:~,:,,,,,,....,,,..+?I?I ~=~=+,:~:=,:~~~~~~::::,.,,.,,.,,,..~+????I ~=~==~=:~~:,~~~~~:::,::,.,,,..,,,I77I?+??II +I7:::~~=~:,::~~~~.=.,~,,,,...,~7III?+??II7 777?+~:=~=~~:,::~~:::.,,,,,,,,,777II??I777777 777I==:=~::~~~~::~:::,:,:~:::,777I???777777777 7777+,~===~:~:~~~~:::,.~:=,,:777II???77777777777=? 777I~,~~~=~::~:,:,,,:=~~,,:7777I???I7777777777+=++ I7777I,,:,.==::::,:,,,,::::7777I+??I77777777777??I7I7, ,77777I::,..~~:,,,,,,.,:~I7777I+??I777777777777?I7777777, 77777777,...~~:,,,,,.,77777I7???II777777777777+?7777777777 77777777777:,~~~,,=7777777I???II777777777777777+77777777777 77777777777777777777777I+7?7II77777777777777777+777777777777
Genius!