Created
May 26, 2017 17:11
-
-
Save hkolbeck/5fcf699cd78146f23214283cccd0a859 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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