Created
March 25, 2017 11:28
-
-
Save HRezaei/d2f0b3ea468d5617ad506ea939f14aa5 to your computer and use it in GitHub Desktop.
Generate random bit strings in bash
This file contains hidden or 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
cat /dev/urandom | tr -dc 'A-F0-9' | fold -w 16 | head -n 5 | sed -e "s/^/('/" | sed -e "s/$/'),/g" > /tmp/codes.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment