mirror of
https://github.com/sheumann/hush.git
synced 2024-08-15 02:29:00 +00:00
19 lines
227 B
Plaintext
19 lines
227 B
Plaintext
|
var=abcdef
|
||
|
|
||
|
echo ${var:7}
|
||
|
echo ${var:6}
|
||
|
echo ${var:5}
|
||
|
echo ${var:1}
|
||
|
echo ${var:0}
|
||
|
echo ${var:-1}
|
||
|
|
||
|
echo ${var:1:4}
|
||
|
echo ${var:0:4}
|
||
|
echo ${var::4}
|
||
|
echo ${var:-1:4}
|
||
|
|
||
|
echo ${var:1:7}
|
||
|
echo ${var:0:7}
|
||
|
echo ${var::7}
|
||
|
echo ${var:-1:7}
|