Last Updated: February 25, 2016
·
475
· jdubeau123

Simple Scripts For Google and Wikipedia

Google

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"