progs/yahoo.sh
author Christian Urban <urbanc@in.tum.de>
Wed, 24 Jul 2019 14:22:06 +0100
changeset 266 ca48ac1d3c3e
permissions -rwxr-xr-x
updated to 2.13
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
266
ca48ac1d3c3e updated to 2.13
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     1
#!/bin/sh
ca48ac1d3c3e updated to 2.13
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     2
###set -e
ca48ac1d3c3e updated to 2.13
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     3
ca48ac1d3c3e updated to 2.13
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     4
trap "exit" INT
ca48ac1d3c3e updated to 2.13
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     5
ca48ac1d3c3e updated to 2.13
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     6
for sym in GOOG AAPL MSFT IBM FB AMZN BIDU PLD PSA AMT AIV AVB BXP CCI DLR EQIX EQR ESS EXR FRT HCP
ca48ac1d3c3e updated to 2.13
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     7
do
ca48ac1d3c3e updated to 2.13
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     8
  echo $sym
ca48ac1d3c3e updated to 2.13
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     9
  ./get_yahoo.sh $sym
ca48ac1d3c3e updated to 2.13
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    10
  scala yahoo.scala $sym > $sym.csv.tmp  
ca48ac1d3c3e updated to 2.13
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    11
  mv $sym.csv.tmp $sym.csv
ca48ac1d3c3e updated to 2.13
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    12
done
ca48ac1d3c3e updated to 2.13
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    13
ca48ac1d3c3e updated to 2.13
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    14