Created
August 7, 2015 22:14
-
-
Save D3MZ/16d9961f60c5ac32bcec to your computer and use it in GitHub Desktop.
complements this blog
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
cut -d',' -f6 #Close prices in sheet | |
awk 'NR>1{print $1-p} {p=$1}' #changes in close prices | |
awk '{if ($1 != 0) print $1}' #no zeros | |
perl -ne 'print $_ < 0 ? -1 : 1, "\n";' #up-down format |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment