我需要打印这样的东西:
a
b
c
.
.
.
z
A
B
C
.
.
.
Z
0
1
2
.
.
.
9
这可以单独完成,但是。
for f in {a..z};
do
echo $f;
done
for f in {A..Z};
do
echo $f;
done
for f in {0..9};
do
echo $f;
done
但我怎么能一个人做呢?也许是这样的?但是没有用。
for f in {a..z:A..Z:1..9};
do
echo $f;
done
答案 0 :(得分:8)
for f in {a..z} {A..Z} {0..9}; do
echo "$f"
done
答案 1 :(得分:3)
或者如果您只想打印它们:
printf "%s\n" {a..z} {A..Z} {0..9}