Random Password Generator Mar 26th, 2014 12:00 am 간단하게 랜덤 암호 생성기… OSX인 경우는 중간에 “LC_CTYPE=C”이 필요함… #!/bin/sh genpasswd() { local l=$1 [ "$l" == "" ] && l=16 cat /dev/urandom | LC_CTYPE=C tr -dc A-Za-z0-9_ | head -c ${l} echo } genpasswd "$@"