2014-06-12 OS Xのbashでランダムな文字列を生成 OS X bash A-Za-z0-9から成る32文字の文字列を生成: LC_CTYPE=C tr -dc A-Za-z0-9 < /dev/urandom | head -c 32