Advertisement
buzzkillb

Untitled

Jan 17th, 2020
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. #!/bin/bash
  2. #Number of Addresses to Create
  3. total=500
  4. #Do Eeet
  5. echo "Will Create $total Addresses"
  6. for ((n=0;n<$total;n++))
  7. do
  8. denariusd getnewaddress >> address.txt
  9. sleep 1
  10. done
  11. #Get Balance
  12. denariusd getbalance
  13. balance=$(denariusd getbalance)
  14. echo "Wallet Balance: $balance D"
  15. send=$(echo "($balance-0.1) / $total"|bc -l)
  16. round=$(printf '%.*f\n' 8 $send)
  17. echo "Amount to Send per Address: $round D"
  18. #Append " and end " per line
  19. sed 's/^/"/' address.txt >> pre.txt
  20. sed 's/$/":'"$round"',/' pre.txt >> end.txt
  21. sed '$ s/,$//g' end.txt >> final.txt
  22. rm pre.txt
  23. rm end.txt
  24. echo "Address List: address.txt"
  25. echo "Sendmany List copy from: final.txt"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement