Skip to content

aleksandr-vin/colorize

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Highlight matched strings in a text

Showcase

See in action

Usage

Pipe text though it to highlight:

  1. Numbers, try:

    cat something | colorize '[0-9]+'
    
  2. Lines matching phrase, try:

    cat anotherthing | colorize '.*phrase.*'
    
  3. Headers in curl, try:

    cat anything | colorize '^[^:]*:'
    

If you don't like distribution of the colors, add some random number as second argument.

Installation

You can install via brew:

brew install aleksandr-vin/taps/colorize-cli

or pypi:

pip install colorize-cli