Skip to content

python script to colorize (shell colors) columns by value

License

Notifications You must be signed in to change notification settings

eborisch/colcolor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

colcolor

python script to colorize (shell colors) columns by value

usage: colcolor [-h] [-H] <filenames>

  -h: First line is header. (Tries to autodetect even when not set.)
  -H: Print this help message.

Reads from files (or stdin if missing or '-') and colorcodes each column
by value.

A picture is really best here:

An image displaying usage

Cool bits:

  • Parses and understands k/m/g/t
  • Each column gets its own scaling
  • Makes it much easier to scan lists of numbers (especially when with k/m/g/t units) for "what's big/small"

I haven't bothered with any "installation"; it's a stand-alone (python3) script.

BSD licensed to avoid spreading code without a specified license ;)

Happy to look at pull requests! I've been tinkering with it for years and realized I never "put it out there."

  • Eric

About

python script to colorize (shell colors) columns by value

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages