Unix-like tool for highlighting a regular expression in text.
Clone the repository and build the project using make
.
git clone https://github.com/8dcc/hl-regexp
cd hl-regexp
make
# ...
You can install the program on your system with the install
target.
sudo make install
# ...
For more information about the program, run it with the --help
argument.
./hl-regexp --help
# Usage:
# ./hl-regexp [OPTION...] REGEXP < INPUT
#
# ...
The following command can be used for highlighting TODO keywords. It might be useful along with my print-todos tool.
cat file.txt | hl-regexp "DE\(BUG\|LME\)\|FIXME\|HACK\|REVIEW\|TODO"