mirror of
https://github.com/sheumann/hush.git
synced 2024-08-25 06:28:58 +00:00
22 lines
269 B
Plaintext
22 lines
269 B
Plaintext
|
var=ababcdcd
|
||
|
|
||
|
echo ${var#ab}
|
||
|
echo ${var##ab}
|
||
|
echo ${var#a*b}
|
||
|
echo ${var##a*b}
|
||
|
echo ${var#?}
|
||
|
echo ${var##?}
|
||
|
echo ${var#*}
|
||
|
echo ${var##*}
|
||
|
|
||
|
echo ${var%cd}
|
||
|
echo ${var%%cd}
|
||
|
echo ${var%c*d}
|
||
|
echo ${var%%c*d}
|
||
|
echo ${var%?}
|
||
|
echo ${var%%?}
|
||
|
echo ${var%*}
|
||
|
echo ${var%%*}
|
||
|
|
||
|
echo end
|