3 ms·
Modified your script to use hexadecimal numbers. Also changed `sha256sum` to use `shasum`, which is what's available on vanilla (not "brewed") macOS. #!/bi
by davidcollantes 5y ago
Modified 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