Skip to content

kkirsche/colorize

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

colorize

*nixy filter that adds color to its standard input by rows or (space separated) columns

Example usage

  • output alternate rows in different colors:

    $ ls -l | colorize.py -a
    $ ls -l | colorize.py -a green,blue
    
  • output each column from stdin in a different color:

    $ tail -f logfile | colorize.py
    $ tail -f logfile | colorize.py -c green,blue,red,yellow
    
  • output the first 3 columns in different colors and all subsequent text in one color:

    $ tail -f logfile | colorize.py 3
    $ tail -f logfile | colorize.py -c green,blue,red 3
    
  • filter the output of tail -f, coloring lines from each file in different color:

    $ tail -f first.log second.log | colorize.py -t
    $ tail -f first.log second.log | colorize.py -t green,yellow
    

Demo

demo

About

*nixy filter that adds color to its standard input by rows or (space separated) columns

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%