Skip to content

Instantly share code, notes, and snippets.

@alien11689
Created January 30, 2016 18:47
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 alien11689/bbdb7f6f8f76425a8526 to your computer and use it in GitHub Desktop.
Save alien11689/bbdb7f6f8f76425a8526 to your computer and use it in GitHub Desktop.
Simple hoogle usage
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