Skip to content

Instantly share code, notes, and snippets.

@Krush206
Last active February 8, 2022 15:49
Show Gist options
  • Save Krush206/e680cbc86fbf2149d3b6cc43f07785c0 to your computer and use it in GitHub Desktop.
Save Krush206/e680cbc86fbf2149d3b6cc43f07785c0 to your computer and use it in GitHub Desktop.
A Shell script to generate random strings.
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