Skip to content

Instantly share code, notes, and snippets.

@kevinohara80
Created July 25, 2012 17:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kevinohara80/3177353 to your computer and use it in GitHub Desktop.
Save kevinohara80/3177353 to your computer and use it in GitHub Desktop.
Silly bash script so you can google something from the command line in Mac OSX
#!/bin/bash
QUERY="$(perl -MURI::Escape -e 'print uri_escape($ARGV[0]);' "$1")"
URL="https://www.google.com/search?q=$QUERY"
open $URL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment