source:
MondoRescue/branches/3.0-mindi-2.1/mindi-busybox/shell/ash_test/ash-vars/var_posix1.tests@
3850
Last change on this file since 3850 was 2725, checked in by , 13 years ago | |
---|---|
|
|
File size: 269 bytes |
Line | |
---|---|
1 | var=ababcdcd |
2 | |
3 | echo ${var#ab} |
4 | echo ${var##ab} |
5 | echo ${var#a*b} |
6 | echo ${var##a*b} |
7 | echo ${var#?} |
8 | echo ${var##?} |
9 | echo ${var#*} |
10 | echo ${var##*} |
11 | |
12 | echo ${var%cd} |
13 | echo ${var%%cd} |
14 | echo ${var%c*d} |
15 | echo ${var%%c*d} |
16 | echo ${var%?} |
17 | echo ${var%%?} |
18 | echo ${var%*} |
19 | echo ${var%%*} |
20 | |
21 | echo end |
Note:
See TracBrowser
for help on using the repository browser.