Created
April 11, 2016 11:16
-
-
Save mikegi/385fc23c11a46ac1a0ff8ecb86a9d1a3 to your computer and use it in GitHub Desktop.
shift data scripts...
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
# 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