générateur simpliste de mots de passe dictables - retour accueil
git clone git://bebou.netlib.re/mdpgen
Log | Files | Refs |
commit 15a6b9e168660dffd7aa831477d4603cc18d0f32 parent c1f4363edf21d661c19c2a8056947bcb8d54d5dc Auteurice: Arthur Pons <arthur.pons@unistra.fr> Date: Wed, 25 Dec 2024 21:32:27 +0100 Portabilité openbsd vraiment paste -s sans - c'est ma kryptonite Diffstat:
M | mdpgen.sh | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mdpgen.sh b/mdpgen.sh @@ -2,7 +2,7 @@ nb=${1:-1} len=${2:-5} -pastearg=$(yes '-' | head -n$len | paste -s -d' ') +pastearg=$(yes '-' | head -n$len | paste -s -d' ' -) cat /dev/random | tr -d -c 'a-z\n' | head -n $((2000*$nb)) |