#!/bin/bash QUERY="\"$1\"" shift while [ ! -z "$1" ]; do QUERY="$QUERY+\"$1\"" shift done exec google-chrome "http://google.com/search?q=$QUERY"