Get stock quotes from the command line (Mac)

Set up

Enter this command in Terminal:

printf "\nprice() {\ncurl -s \"http://download.finance.yahoo.com/d/quotes.csv?s=\$1&f=l1\"\n}" >> ~/.bash_profile && source ~/.bash_profile  

Examples

Get stock quotes for Amazon, Google or Apple:

price amzn
price goog  
price aapl