Created
September 11, 2015 08:31
-
-
Save Magicking/6d39b91f40e3174d8e86 to your computer and use it in GitHub Desktop.
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/sh | |
URL='https://www.reddit.com/r/neucoin/comments/3k57cx/beta_addresses/' | |
HDRS='' #removed | |
LST_DONE='lst_done.txt' | |
touch "$LST_DONE" | |
curl $HDRS -s "$URL" | grep -o 'N\w\{26,35\}' | sort | uniq | while read addr; | |
do | |
echo -n $addr | python check.py | |
if [ $? -eq 0 ]; then | |
grep -q -F "$addr" "$LST_DONE" | |
if [ $? -ne 0 ]; then | |
neucoind sendtoaddress "$addr" 42 | |
echo "$addr" >> "$LST_DONE" | |
fi | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment