June 2025
Beginner to intermediate
473 pages
13h 30m
English
Strings are the central data type of Bash—I already mentioned that several times. Nevertheless, the handling of strings sometimes seems strange. This section summarizes the most important functions with regard to strings.
In Bash, strings can be placed in both single and double quotation marks:
'abc$efg': In this case, the string will be transferred exactly.
"abc$efg": In this variant, Bash replaces variables contained in the text ($efg in this case) with its contents and may also perform other substitution procedures, which I will explain later in this section.
In Bash, multiple strings can be concatenated without an operator. The only requirement is that Bash can recognize ...
Read now
Unlock full access