lmgtfy (131B)
1 #!/bin/sh 2 3 append="$(echo "$@" | tr ' ' '+')" 4 url="https://www.google.com/search?q=$append" 5 echo "$url" | xclip -i 6 xdotool click 2