progs/yahoo.sh
author Christian Urban <christian dot urban at kcl dot ac dot uk>
Tue, 06 Aug 2019 00:12:34 +0100
changeset 270 38e13601cb1b
parent 266 31e5218f43de
permissions -rwxr-xr-x
updated
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
266
31e5218f43de updated to 2.13
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     1
#!/bin/sh
31e5218f43de updated to 2.13
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     2
###set -e
31e5218f43de updated to 2.13
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     3
31e5218f43de updated to 2.13
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     4
trap "exit" INT
31e5218f43de updated to 2.13
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     5
31e5218f43de 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
31e5218f43de updated to 2.13
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     7
do
31e5218f43de updated to 2.13
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     8
  echo $sym
31e5218f43de updated to 2.13
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     9
  ./get_yahoo.sh $sym
31e5218f43de updated to 2.13
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    10
  scala yahoo.scala $sym > $sym.csv.tmp  
31e5218f43de updated to 2.13
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    11
  mv $sym.csv.tmp $sym.csv
31e5218f43de updated to 2.13
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    12
done
31e5218f43de updated to 2.13
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    13
31e5218f43de updated to 2.13
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    14