mirror of
https://github.com/sheumann/hush.git
synced 2024-10-29 20:27:40 +00:00
14 lines
171 B
Plaintext
14 lines
171 B
Plaintext
|
var=ababcdcd
|
||
|
|
||
|
echo ${var#ab}
|
||
|
echo ${var#a*b}
|
||
|
echo ${var##ab}
|
||
|
echo ${var##a*b}
|
||
|
echo ${var#?}
|
||
|
|
||
|
echo ${var%cd}
|
||
|
echo ${var%c*d}
|
||
|
echo ${var%%cd}
|
||
|
echo ${var%%c*d}
|
||
|
echo ${var%?}
|