批量生成随机字符文件名
需求:
解决方案:
makeHTML.sh
webDir=/web
if [ -d $webDir ]; then
rm -rf $webDir/*
else
mkdir $webDir
fi
for n in `seq 10`
do
random=`openssl rand -base64 32 | sed 's/[^0-9a-zA-Z]//g' | cut -c 1-10`
touch $webDir/music_${random}.html
doneLast updated