websearch (305B)
1 #!/bin/sh 2 3 # Perform a web search 4 5 browser=${BROWSER:-firefox} 6 searchengine="https://www.startpage.com/sp/search?query=" 7 #searchengine="https://duckduckgo.com/?q=" 8 #searchendinge="https://www.google.com/search?q=" 9 10 arg=$(echo "$@" | sed 's/ /\+/g') 11 [ -n "$arg" ] && spawn "$browser" "${searchengine}$arg"