thomd / colgrep

colgrep(1) colors pattern in a stdin stream

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

colgrep(1)

Build Status

A lightweigth colorizer for a STDIN stream. Like grep, but prints all lines.

To always recognize what's important!

Installation

make test
make install BINDIR=$HOME/bin MANDIR=$HOME/man

Syntax

colgrep [-h] [-c COLOR] [-b] [-l] [-i] [-v] [--version] PATTERN [PATTERN ...]

See man page for options

man colgrep

Examples

Highlight 404 and 401 requests in an Apache access.log in red

tail -f access.log | colgrep 404 401 -c red

Highlight HTTP redirects

curl -sIL google.de | colgrep -l Location

About

colgrep(1) colors pattern in a stdin stream


Languages

Language:Shell 41.8%Language:Python 37.1%Language:Roff 13.6%Language:Makefile 5.2%Language:Ruby 2.2%