Skip to content

Instantly share code, notes, and snippets.

@paolobrasolin
Created April 6, 2018 17:45
Show Gist options
  • Save paolobrasolin/e1819c4df1735f836d1a919b7836b93b to your computer and use it in GitHub Desktop.
Save paolobrasolin/e1819c4df1735f836d1a919b7836b93b to your computer and use it in GitHub Desktop.
POSIX random string
rndch () { cat /dev/urandom | LC_ALL=C tr -dc '[:graph:]' | head -c $1; };
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment