forked from ikalnytskyi/em
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
47 lines (24 loc) · 1.13 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
// 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/.