complements this blog
This file contains 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