17/05/01 14:46:35.63 H4gXANrG.net
>>891
$ cat a.sh
#!/bin/sh
function make_10alnum() {
cat /dev/urandom| tr -dc 'A-Za-z0-9'| head -c 10
}
function make_8num() {
cat /dev/urandom| tr -dc '[:digit:]'| head -c 8
}
for i in `seq 4`; do
ALNUM10=`make_10alnum`
NUM8=`make_8num`
echo "$i A[$ALNUM10] B[$NUM8]" >> test.txt
done
$ sh a.sh
$ cat test.txt
1 A[aszUeYDc1D] B[33996654]
2 A[wCMQ9mfBoP] B[26265843]
3 A[2coX1HVUk5] B[42189911]
4 A[FY4KNYpvec] B[13958901]
$