Skip to content

Instantly share code, notes, and snippets.

@r2k0
Created June 8, 2011 06:18
Show Gist options
  • Save r2k0/1013884 to your computer and use it in GitHub Desktop.
Save r2k0/1013884 to your computer and use it in GitHub Desktop.
check all your stocks from CLI
#!/usr/bin/perl -w
@TICKER = ('ERTS','GOOG','AAPL','MSFT','INTC');
foreach $stocks (@TICKER){
print "$stocks\t";
system("curl -s 'http://download.finance.yahoo.com/d/quotes.csv?s=$stocks&f=l1'")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment