diff options
author | Kleidi Bujari <mail@4kb.net> | 2024-09-01 20:15:11 -0400 |
---|---|---|
committer | Kleidi Bujari <mail@4kb.net> | 2024-09-01 20:15:11 -0400 |
commit | cd0f059ef58b7b04877bd938b223f16b679d030e (patch) | |
tree | 980bcf8a2f46b0f7e52cfd677cb389d96b7ec8f5 /randpass | |
download | bin-cd0f059ef58b7b04877bd938b223f16b679d030e.tar.gz bin-cd0f059ef58b7b04877bd938b223f16b679d030e.tar.bz2 bin-cd0f059ef58b7b04877bd938b223f16b679d030e.zip |
init
Diffstat (limited to 'randpass')
-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}" |