Skip to content

Instantly share code, notes, and snippets.

@lee2sman
Created September 17, 2016 06:49
Show Gist options
  • Save lee2sman/e1add145b012c02cd0e9d02451f826f2 to your computer and use it in GitHub Desktop.
Save lee2sman/e1add145b012c02cd0e9d02451f826f2 to your computer and use it in GitHub Desktop.
Search duckduckgo from commandline on PocketCHIP using SURF
#!/bin/bash
#
# Duckduckgo commandline search on PocketCHIP using surf
# cc0 by Lee2sman
if [ $# -eq 0 ]
then
#Exits if you don't put anything to search after duck
echo "No search arguments entered."
exit 1
else
lookup=$@
surf "https://duckduckgo.com/?q=$lookup"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment