bash:strings:concatenating_strings
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
bash:strings:concatenating_strings [2021/01/13 22:17] – peter | bash:strings:concatenating_strings [2021/01/13 22:55] (current) – peter | ||
---|---|---|---|
Line 36: | Line 36: | ||
</ | </ | ||
+ | ---- | ||
+ | |||
+ | <code bash> | ||
+ | var=" | ||
+ | echo ${var:0:(-1 -4)}XYZ | ||
+ | </ | ||
+ | |||
+ | returns: | ||
+ | |||
+ | <code bash> | ||
+ | abcXYZ | ||
+ | </ | ||
bash/strings/concatenating_strings.1610576252.txt.gz · Last modified: 2021/01/13 22:17 by peter