🎨 colr
colors strings, colorfully.
$ tail -F /var/log/nginx/access.log | colr POST GET 404 500 search
Erase colors:
If you want to erase colors from STDIN, you can use --erase
option.
$ any-colorful-command | colr --erase
deb:
$ export COLR_VERSION=X.X.X
$ curl -o colr.deb -L https://github.com/k1LoW/colr/releases/download/v$COLR_VERSION/colr_$COLR_VERSION-1_amd64.deb
$ dpkg -i colr.deb
RPM:
$ export COLR_VERSION=X.X.X
$ yum install https://github.com/k1LoW/colr/releases/download/v$COLR_VERSION/colr_$COLR_VERSION-1_amd64.rpm
apk:
$ export COLR_VERSION=X.X.X
$ curl -o colr.apk -L https://github.com/k1LoW/colr/releases/download/v$COLR_VERSION/colr_$COLR_VERSION-1_amd64.apk
$ apk add colr.apk
homebrew tap:
$ brew install k1LoW/tap/colr
go install:
$ go install github.com/k1LoW/colr/cmd/[email protected]
manually:
Download binary from releases page