#text #highlighter #stdout #words #highlight #read #stdin

app hh-highlight

hh: The text highlighter. Read from stdin, and highlight selected words printed to stdout

3 unstable releases

0.2.1 Oct 26, 2024
0.2.0 Oct 26, 2024
0.1.0 Feb 4, 2024

#313 in Text processing

Download history 1/week @ 2024-10-04 206/week @ 2024-10-25 22/week @ 2024-11-01 4/week @ 2024-11-08 1/week @ 2024-11-15 36/week @ 2024-12-06 25/week @ 2024-12-13

76 downloads per month

GPL-2.0-only

13KB
68 lines

hh-highlighter

Fast text highlighter

This application reads from stdin, and highlight selected words printed to stdout.

Example:

# cat <foo> | hh-highlight <word1> <word2>

There are a few other options, such as sleeping after a word is found, for better consumption.

This is useful when you are waiting for some word on a stream of text

Help

hh: The text highlighter. Read from stdin, and highlight selected words printed to stdout

Usage: hh-highlight [OPTIONS] [WORDS]...

Arguments:
  [WORDS]...  The words you want to highlight

Options:
  -c, --context...  Add more context to the words being highlighted
  -w, --wait...     Wait a second after the line with the highlighted word is printed
  -h, --help        Print help
  -V, --version     Print version

Dependencies

~1.4–8MB
~69K SLoC