Skip to content

Instantly share code, notes, and snippets.

@mikegi
Created April 11, 2016 11:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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