Prints weekly stock prices for a specific year
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
#!/usr/bin/env bash | |
curl -s "http://www.google.com/finance/historical?q=$1&startdate=jan+1&2c+$2&enddate=dec+31%2c+$2&output=csv&histperiod=weekly" \ | |
| sed -e '1d' \ | |
| tac \ | |
| cut -d, -f5 \ | |
| spark |
holman
commented
Dec 28, 2011
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment