Created
January 30, 2016 18:47
-
-
Save alien11689/bbdb7f6f8f76425a8526 to your computer and use it in GitHub Desktop.
Simple hoogle usage
This file contains 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
function hoog { | |
search=$1 | |
count=$2 | |
if [ -z $count ] ; then | |
hoogle -q -c "$search" | grep -v -e "^Searching for:" | awk 'BEGIN { a = 1 } { print a ") " $(NF-NF) ; a = a + 1 }' | |
else | |
hoogle -q -c -i -s $count "$search" | |
fi | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment