Last active
January 22, 2019 17:40
-
-
Save sabau/53b8f6e0b433a4d9ecf06f10b2046c41 to your computer and use it in GitHub Desktop.
Get addresses.csv and grant money to them for fun a random amount
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
#!/bin/bash | |
INPUT=addresses.csv | |
OLDIFS=$IFS | |
IFS=, | |
# Universal Basic EvilIncome - unequal for fun | |
tail -n +2 $INPUT | while read time_added address ; do | |
money=$[($RANDOM % 1000) + 100] | |
echo " - I want to give $money to $address" | |
# Proper command to give money via nscli tx ... | |
# nscli query account $address --indent --chain-id testchain | |
done | |
echo "People are now hating each other" | |
IFS=$OLDIFS |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment