From a009ddc7046d6a4963b01627c3bbd35dd2c88234 Mon Sep 17 00:00:00 2001 From: icaema Date: Sat, 28 Oct 2023 22:25:01 -0400 Subject: [PATCH] Add bash_random.sh --- bash_random.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 bash_random.sh diff --git a/bash_random.sh b/bash_random.sh new file mode 100755 index 0000000..0feb992 --- /dev/null +++ b/bash_random.sh @@ -0,0 +1,8 @@ +#!/bin/bash +#======================================= +# Password generator with login option +#======================================= +for i in {1..5}; do (tr -cd '[:alnum:][:punct:][:alnum:]' < /dev/urandom | fold -w24 | head -n 1); done + +# Print the strings +printf "$pass_output\n"