4 ms·
Why the test of both $# and $1? tr -dc '!-~' </dev/urandom | head -c ${1-12}; echo Change to A-Za-z0-9, etc., to suit.
by ralph 14y ago
Why the test of both $# and $1?
tr -dc '!-~' </dev/urandom | head -c ${1-12}; echo
Change to A-Za-z0-9, etc., to suit.
- Locke1689 14y agoMostly because I'm terrible at shell scripting. Thanks.