Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
complements this blog
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