Use a for loop to create 10 html files in batches in the /bbbb directory, each of which needs to contain 10 random lowercase letters and a fixed string bbbb:

vim shell.sh

	mkdir /bbbb
	cd /bbbb
	for i in `seq 1 10`
	do
		touch bbbb$i.html
		uuidgen | tr -dc 'a-z | cut -c 1-10 > bbbb$i.html  #生成随机字符串
	done

Guess you like

Origin blog.csdn.net/zhangthree1/article/details/109081752