Created
July 25, 2012 17:16
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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