This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
date | close | |
---|---|---|
1-May-12 | 58.13 | |
30-Apr-12 | 53.98 | |
27-Apr-12 | 67.00 | |
26-Apr-12 | 89.70 | |
25-Apr-12 | 99.00 | |
24-Apr-12 | 130.28 | |
23-Apr-12 | 166.70 | |
20-Apr-12 | 234.98 | |
19-Apr-12 | 345.44 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
trap 'exit' ERR # exit on error (better than `set -e`) | |
set -x # echo commands before running | |
set -u # throw error if an unbound variable is called | |
BASEDIR=$(cd $(dirname $0) && pwd) # path to directory for itself | |
LOGDIR="$BASEDIR/times" # directory for logging | |
LOGFILE="$LOGDIR/times.txt" # file for logging (within $LOGDIR) |