-
-
Save lee2sman/e1add145b012c02cd0e9d02451f826f2 to your computer and use it in GitHub Desktop.
Search duckduckgo from commandline on PocketCHIP using SURF
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
#!/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