echo ${PATH:5:1}${PATH:11:1}
在这里插入图片描述
${PATH:5:1}${PATH:11:1} 1
相当于
ls 1
${PATH:i,1}
当时i<0&#xff0c;${PATH:i,1}
相当于&#xff1a;$PATH
当0i | ${PATH:i,1} |
---|
0 | / |
1 | u |
2 | s |
3 | r |
4 | / |
5 | l |
6 | o |
7 | c |
8 | a |
9 | l |
10 | / |
11 | s |
12 | b |
13 | i |
14 | n |
15 | : |
16 | / |
17 | u |
18 | s |
19 | r |
20 | / |
21 | l |
22 | o |
23 | c |
24 | a |
25 | l |
26 | / |
27 | b |
28 | i |
29 | n |
30 | : |
31 | / |
32 | u |
33 | s |
34 | r |
35 | / |
36 | s |
37 | b |
38 | i |
39 | n |
40 | : |
41 | / |
42 | u |
43 | s |
44 | r |
45 | / |
46 | b |
47 | i |
48 | n |
49 | : |
50 | / |
51 | s |
52 | b |
53 | i |
54 | n |
55 | : |
56 | / |
57 | b |
58 | i |
59 | n |
字符 | i |
---|
a | 8 24 |
b | 12 27 37 46 52 57 |
c | 7 23 |
d | 无 |
e | 无 |
f | 无 |
g | 无 |
h | 无 |
i | 13 28 38 47 53 58 |
j | 无 |
k | 无 |
l | 5 9 21 25 |
m | 无 |
n | 14 29 39 48 54 59 |
o | 6 22 |
p | 无 |
q | 无 |
r | 3 19 34 44 |
s | 2 11 18 33 36 51 |
t | 无 |
u | 1 17 32 42 |
v | 无 |
w | 无 |
x | 无 |
y | 无 |
z | 无 |
: | 15 30 40 49 55 |
/ | 0 4 10 16 20 26 31 35 41 45 50 |