批量生成随机字符名文件

1.批量生成随机字符名文件

#!/bin/bash
#Date:2019-12-30
#Function:Create random character files
Path=/study
[ -d "$Path" ] || mkdir -p $Path
for n in `seq 10`
do
random=$(openssl rand -base64 40|sed 's#[^a-z]##g'|cut -c 2-11)
touch $Path/${random}_study.txt
done


「 文章如果对你有帮助,请点个赞哦^^ 」 

0