progs/yahoo.sh
author Christian Urban <urbanc@in.tum.de>
Tue, 12 Nov 2019 10:47:27 +0000
changeset 319 b84ea52bfd8f
parent 266 ca48ac1d3c3e
permissions -rwxr-xr-x
updated
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