LoginSignup
7
7

More than 5 years have passed since last update.

/dev/urandomをつかって文字列を生成する

Posted at
tr -dc A-Za-z0-9_ < /dev/urandom | head -c 8

これで大文字と小文字のアルファベット及び数字と_からなる8文字の文字列を生成する。
構成する文字と文字数はよしなに。

7
7
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
7
7