#!/bin/sh
#批量创建文件脚本
#by zkg 2019-08-22

filedir=/home/nginx
if [ ! -d $filedir ];then
mkdir -p $filedir && echo "$filedir is created successfully"
fi
for ((i=1;i<=10;i++))
do
random=openssl rand -base64 32|sed 's/[^a-z]//g'|cut -c 2-11
touch $filedir/${random}_nginx.html
done