random-password/random-password
Patrick Lühne 020b9dc7d4
Make variables lower-case
In order not to have conflicts with the system’s environment variables,
custom variables are conventionally set in lower case.
2017-11-18 21:45:06 +01:00

4 lines
153 B
Bash
Executable File

#!/bin/bash
length=${1:-32}
cat /dev/urandom | tr -dc 'a-zA-Z0-9-_!@#$%^&*()_+{}|:<>?=' | fold -w $length | head -n 1 | grep -i '[!@#$%^&*()_+{}|:<>?=]'