#!/usr/bin/env bash query=$(urlencode <<< "$*") echo "Opening https://duckduckgo.com/?q=$query" open "https://duckduckgo.com/?q=$query"