Created
January 8, 2020 17:43
-
-
Save 1ntEgr8/2ef02ee1e351d50ccdf4c40ecb685edf to your computer and use it in GitHub Desktop.
search duckduckgo from a terminal
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
#!/usr/bin/env bash | |
if [ $# -ge 1 ] | |
then | |
query=$(sed 's/ /+/g' <<< $(sed 's/"/\"/g' <<< $1)) | |
open "https://www.duckduckgo.com/?q="$query | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment