My scripts for startup, dmenu, and the command line
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- #!/bin/sh
-
- password() {
- tr -d '\n' < /dev/urandom | fold -w30 | head -n1
- }
-
- password_easy() {
- tr -cd '[:alnum:]' < /dev/urandom | fold -w20 | head -n1
- }
-
- case $1 in
- password) password;;
- *) printf "Invalid argument";;
- esac
|