shithub: rc

Download patch

ref: c5936ada17dd938ec011fb94328118b91f02e397
parent: 5380c7b9724db3a73bb0999c05c5492a4afcd24c
author: qwx <qwx@sciops.net>
date: Sat Jan 11 12:31:28 EST 2020

add genpw: quick and dirty random password generation

--- /dev/null
+++ b/genpw
@@ -1,0 +1,8 @@
+#!/bin/rc
+n=32
+if(~ $1 -n){
+	n=$2
+	shift 2
+}
+tr -cd ' '-~ </dev/random | read -c $n
+echo