diff options
Diffstat (limited to '.local/bin/random')
-rwxr-xr-x | .local/bin/random | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/.local/bin/random b/.local/bin/random new file mode 100755 index 0000000..e3875f8 --- /dev/null +++ b/.local/bin/random @@ -0,0 +1,4 @@ +#!/bin/bash +CHARACTER_SET="[:punct:][:alnum:]" +read -r -n $1 rand < <(LC_ALL=C tr -dc "${CHARACTER_SET}" < /dev/urandom) +printf "%s" "${rand}" |