Highlights each word/regex in a diferent color.
# import hi
source ./hi.sh
# call it over a pipe and pass one or more word/regex
cat examples/input.txt | hi over [0-9]+
hi
is a pure-bash, regex-enabled, multi-pattern highlighter ready to be use directly in the terminal, making it easier to spot relevant pieces of information.
<some_command> | hi REGEX [ REGEX ... ]
REGEX Bash style regular expression.
ping -c 4 127.0.0.1 | hi from
ping -c 4 127.0.0.1 | hi [0-9]+
ping -c 4 127.0.0.1 | hi from bytes [0-9]+
ping -c 4 127.0.0.1 | hi ttl "[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+"
sudo apt-get install shunit2
bash ./unit_test.sh