3 ms·
How about modifying this one, to use hexadecimal numbers instead?
by davidcollantes 5y ago
How about modifying this one, to use hexadecimal numbers instead?
- davidcollantes 5y agoModified your script to use hexadecimal numbers. Also changed `sha256sum` to use `shasum`, which is what's available on vanilla (not "brewed") macOS. #!/bin/bash COUNT=0 while true; do hex=`printf "%04X\n" $COUNT` SHA=`echo -n "$hex puppies adopted me." | shasum -a 256 | egrep 8888` if [ "$SHA" != "" ] ; then echo "$SHA $hex puppies adopted me." fi COUNT=`expr $COUNT + 1` done