trunc
Truncate a string (and add no suffix)
trunc 5 "hello world"
The above produces hello
.
trunc -5 "hello world"
The above produces world
.
Truncate a string (and add no suffix)
trunc 5 "hello world"
The above produces hello
.
trunc -5 "hello world"
The above produces world
.