Last active
February 8, 2022 15:49
-
-
Save Krush206/e680cbc86fbf2149d3b6cc43f07785c0 to your computer and use it in GitHub Desktop.
A Shell script to generate random strings.
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
grep -ao '[\!-~]' < /dev/urandom | \ | |
head -$1 | tr -d '\n' # The first argument defines the length | |
echo "" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment