Skip to content

Instantly share code, notes, and snippets.

@sabau
Last active January 22, 2019 17:40
Show Gist options
  • Save sabau/53b8f6e0b433a4d9ecf06f10b2046c41 to your computer and use it in GitHub Desktop.
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
#!/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