Shell随机生成字符串

随机生成18位的字符串,数字 大小写字符 斜线

password=`openssl rand -base64 40 |sed 's#^[a-z]##g' | cut -c 2-19`

 

posted @ 2019-08-07 15:25  sellsa  阅读(878)  评论(0编辑  收藏  举报