I am trying to use the Bash variable $RANDOM
to create a random string that consists of 8 characters from a variable that contains integer and alphanumeric digits, e.g., var="abcd1234ABCD"
.
How can I do that?
See Question&Answers more detail:osI am trying to use the Bash variable $RANDOM
to create a random string that consists of 8 characters from a variable that contains integer and alphanumeric digits, e.g., var="abcd1234ABCD"
.
How can I do that?
See Question&Answers more detail:os