summary refs log tree commit diff
path: root/randpass
diff options
context:
space:
mode:
authorKleidi Bujari <mail@4kb.net>2024-09-01 20:15:11 -0400
committerKleidi Bujari <mail@4kb.net>2024-09-01 20:15:11 -0400
commitcd0f059ef58b7b04877bd938b223f16b679d030e (patch)
tree980bcf8a2f46b0f7e52cfd677cb389d96b7ec8f5 /randpass
downloadbin-cd0f059ef58b7b04877bd938b223f16b679d030e.tar.gz
bin-cd0f059ef58b7b04877bd938b223f16b679d030e.tar.bz2
bin-cd0f059ef58b7b04877bd938b223f16b679d030e.zip
init
Diffstat (limited to 'randpass')
-rwxr-xr-xrandpass8
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}"