Skip to content

Instantly share code, notes, and snippets.

@hkolbeck
Created May 26, 2017 17:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hkolbeck/5fcf699cd78146f23214283cccd0a859 to your computer and use it in GitHub Desktop.
Save hkolbeck/5fcf699cd78146f23214283cccd0a859 to your computer and use it in GitHub Desktop.
#!/bin/bash
set -e
PATTERN=`echo $@ | tr ' ' '|'`
if [ -z "${PATTERN}" ]; then
cat -
exit $?
fi
TMP=`mktemp`
tee ${TMP} | grep -C100 --color -P ${PATTERN} || cat ${TMP}
rm ${TMP}
#!/bin/bash
set -e
mvn dependency:tree -Dverbose=true | hilight $@
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment