LoginSignup
8
6

More than 5 years have passed since last update.

Macでランダムな文字列をサクッと生成する方法

Posted at

env LC_CTYPE=C tr -dc "a-zA-Z0-9-_\$\?" < /dev/urandom | head -c 10

head -c 10 の部分を変更するとより長い文字列が得られます。

8
6
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
8
6