8000 GitHub - 8dcc/hl-regexp: Unix-like tool for highlighting a regular expression in text
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

8dcc/hl-regexp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hl-regexp

Unix-like tool for highlighting a regular expression in text.

Building

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
# ...

Usage

For more information about the program, run it with the --help argument.

./hl-regexp --help
# Usage:
#   ./hl-regexp [OPTION...] REGEXP < INPUT
#
# ...

Useful regular expressions

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"

About

Unix-like tool for highlighting a regular expression in text

Topics

Resources

License

Stars

Watchers

Forks

0