stock 292 B

1234567891011121314
  1. #!/bin/rc
  2. stock=LU
  3. if(! ~ $#* 0) stock=`{echo $*|tr a-z A-Z|sed 's/ /+/g'}
  4. hget 'http://quote.yahoo.com/d/quotes.csv?s='^$stock^'&f=snl1d1c1v&e=.exe' |
  5. sed 's/ +"/"/;s/ //' |
  6. switch(`{date}){
  7. case *'Apr 1 '*
  8. sed 's/("LU","LUCENT TECH INC"),([^,]*),(.*)$/\1,2.35,\3/'
  9. case *
  10. cat
  11. }