mirror of
https://github.com/sheumann/hush.git
synced 2024-12-23 05:29:58 +00:00
19 lines
227 B
Plaintext
Executable File
19 lines
227 B
Plaintext
Executable File
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}
|