Skip to content
/ em Public
forked from ikalnytskyi/em

Em is a terminal tool that prints FILE(s), or standard input to standard output and highlights the expressions that are matched the PATTERN.

License

Notifications You must be signed in to change notification settings

reckoner/em

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

                                //  em  //

                      emphasize expressions in stdout


~ What is Em?

  Em is a terminal tool that prints FILE(s) or standard input to standard
  output and highlights the expressions that are matching the PATTERN.

  The expression will be highlighted iff stdout refers to the tty and that
  tty is ANSI-compatible.


~ Why the name Em?

  The name is an abbreviation of emphasize, a synonym of highlight. BTW,
  it's easy to write and it's easy to remember since HTML has <em> tag
  with similar meaning.


~ Requirements?

  The terminal must be ANSI-compatible. This criterion is met by most
  popular terminal emulators on Linux, Unix and MacOS.

  Also, you need Python 2.6, Python 3.2 or above to run Em.


~ How to install?

      $ [sudo] pip install em


~ How to use?

  The most practical usecase for me:

      $ tail -f /path/to/log | em "ERROR" -f red | em "WARNING" -f yellow

  See the documentations for details: http://em.readthedocs.org/.


~ How to contribute?

  You can report a bug, fix it or share a good idea. You even can make
  some donate via https://www.gittip.com/ikalnitsky/.

About

Em is a terminal tool that prints FILE(s), or standard input to standard output and highlights the expressions that are matched the PATTERN.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%