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
|
[user@Linux92 cmd_test]$ echo cp file.c{,.bak}
cp file.c file.c.bak
[user@Linux92 cmd_test]$ echo cp file.c{.tmp,.bak}
cp file.c.tmp file.c.bak
[user@Linux92 cmd_test]$ echo {a,b,c}.txt
a.txt b.txt c.txt
[user@Linux92 cmd_test]$ echo {,b,c}.txt
.txt b.txt c.txt
[user@Linux92 cmd_test]$ echo [abc].txt
[abc].txt
[user@Linux92 cmd_test]$ echo {a..c}.txt
a.txt b.txt c.txt
[user@Linux92 cmd_test]$ echo {a-c}.txt
{a-c}.txt
[user@Linux92 cmd_test]$ echo {01..5}.txt
01.txt 02.txt 03.txt 04.txt 05.txt
[user@Linux92 cmd_test]$ echo {1..10..2}.txt
1.txt 3.txt 5.txt 7.txt 9.txt
[user@Linux92 cmd_test]$ echo {1..10..-2}.txt
9.txt 7.txt 5.txt 3.txt 1.txt
[user@Linux92 cmd_test]$ echo {9..1..-2}.txt
9.txt 7.txt 5.txt 3.txt 1.txt
[user@Linux92 cmd_test]$ echo {01..3}/{baby,photo}
01/baby 01/photo 02/baby 02/photo 03/baby 03/photo
[user@Linux92 cmd_test]$ echo {{A..Z}, {a..z}, {0-9}}
{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, 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, {0-9}}
|