Simple Scripts For Google and Wikipedia
This is a basic script for google searching from your terminal on a mac.
#!/usr/bin/env bash
open -a "/Applications/Google Chrome.app" "http://google.com/search?q=$1"
add it to a directory in your $PATH and it can be useful. I have it saved as google, so to find out all about sandwiches I can use:
google sandwiches
Wikipedia
The wikipedia script is similar, just use:
#!/usr/bin/env bash
open -a "/Applications/Google Chrome.app" "http://en.wikipedia.org/wiki/$1"
Written by Julien Dubeau
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Google
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#