excludechars=\`
htpasswd -bnBC 10 "" $(pwgen -sncBy -r "$excludechars" 16 1 | tee /dev/tty | tr -d '\n') | tr -d ':'htpasswd -bnBC 10 ""-buse password from command line-nsend to stdout-Buse bcrypt-C 10bcrypt computing cost""username, not used
pwgen -sncBy -r "$excludechars" 16 1-ssecure-nat least 1 number-cat least one capital letter-Bavoid ambiguius chars like lI-yinclude one symbol-r "$excludechars"exclude chars16pw size1generate one
| tee /dev/tty- to print the password and pass along
| tr -d '\n'to remove new line thatpwgenadds| tr -d ':'to remove:thathtpasswdadds