A shorter variant of the quick hack described in an older article:
LENGTH=32; echo $(tr -dc '[:alnum:]' < /dev/urandom | head -c $LENGTH)
The echo call is optional and is only used to generate a newline after the output.
A shorter variant of the quick hack described in an older article:
LENGTH=32; echo $(tr -dc '[:alnum:]' < /dev/urandom | head -c $LENGTH)
The echo call is optional and is only used to generate a newline after the output.