From 9932a24001e292ed2fe66c32dabc3078514bb80b Mon Sep 17 00:00:00 2001 From: turret Date: Sat, 11 Nov 2023 16:31:43 -0600 Subject: local/bin: add utility scripts on my main box --- .local/bin/random | 4 ++++ 1 file changed, 4 insertions(+) create mode 100755 .local/bin/random (limited to '.local/bin/random') 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}" -- cgit v1.2.3