shell输出5位字母和数字的所有组合

代码如下:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash

arr_w=(1 2 3 4 5 6 7 8 9 0 a b c d e f g h i j k l m n o p q r s t u v w s y z A B C D E F G H I J K L M N O P Q R S T U V W X Y Z);

for a in ${arr_w[@]}
do
a1=$a
for b in ${arr_w[@]}
do
b1=$b
for c in ${arr_w[@]}
do
c1=$c
for d in ${arr_w[@]}
do
d1=$d
for e in ${arr_w[@]}
do
e1=$e
hh=${a1}${b1}${c1}${d1}${e1};
echo ${hh};
done
done
done
done
done

扫一扫,打赏我
Fanyun Fanyun
Copyright©1993 - Now. 瞎塔码搞