Skip to content

Instantly share code, notes, and snippets.

@mikegi
Created April 11, 2016 11:16
Show Gist options
  • Save mikegi/385fc23c11a46ac1a0ff8ecb86a9d1a3 to your computer and use it in GitHub Desktop.
Save mikegi/385fc23c11a46ac1a0ff8ecb86a9d1a3 to your computer and use it in GitHub Desktop.
shift data scripts...
# some one liners for checking shift genesis_transition information
# https://github.com/shiftcurrency/shift
# remove the json formatting
sed -e 's/\"//g' -e 's/[{},]//g'
# get balances and sum them. (sed)
grep balance shift_2.5.0.json | sed -e 's/\"//g' -e 's/[{},]//g' |cut -d ":" -f 3 |python -c "import sys; print sum(int(l) for l in sys.stdin)"
# sorted list of balances
grep balance shift_2.5.0.json | sed -e 's/\"//g' -e 's/[{},]//g' | sort
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment