diff options
-rwxr-xr-x | randpass | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/randpass b/randpass new file mode 100755 index 0000000..180fd3e --- /dev/null +++ b/randpass @@ -0,0 +1,8 @@ +#!/bin/sh +# +# Generate mostly random string with alphanumerics +# +# ARGS +# $1: num of chars to output, default 14 + +tr -dc '[:alnum:]' </dev/urandom | head -c "${1:-14}" |