My scripts for startup, dmenu, and the command line
選択できるのは25トピックまでです。
トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
|
- #!/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
|