#!/bin/bash
Path=/jiaoben
[ -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}_jiaoben.html
done
cut -c 2-11,是从1开始
sed 's#[^a-z]##g',#是分隔号
#!/bin/bash
Path=/jiaoben
[ -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}_jiaoben.html
done
cut -c 2-11,是从1开始
sed 's#[^a-z]##g',#是分隔号