User Tools

Site Tools


bash:strings:concatenating_strings

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
bash:strings:concatenating_strings [2021/01/13 22:17] peterbash:strings:concatenating_strings [2021/01/13 22:55] (current) peter
Line 36: Line 36:
 </code> </code>
  
 +----
 +
 +<code bash>
 +var="abcdefgh"
 +echo ${var:0:(-1 -4)}XYZ
 +</code>
 +
 +returns:
 +
 +<code bash>
 +abcXYZ
 +</code>
  
bash/strings/concatenating_strings.1610576252.txt.gz · Last modified: 2021/01/13 22:17 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki