Question
In linux, you have parameter TEXT with value "hithere", print out just the substring "the" from TEXT.

echo ${TEXT:2:3} ^^ note the special use of parameter expansion above ^^^ note that the first number, 2, is the starting index of string to start the substring from, and the second number, 3, is the length of substring. THIS IS DIFFERENT THAN PYTHON. ^^^^ To go to the end of substing, if you don't know length, just choose a very large length value, e.g. echo${TEXT:2:20000}

Question
In linux, you have parameter TEXT with value "hithere", print out just the substring "the" from TEXT.
?

Question
In linux, you have parameter TEXT with value "hithere", print out just the substring "the" from TEXT.

echo ${TEXT:2:3} ^^ note the special use of parameter expansion above ^^^ note that the first number, 2, is the starting index of string to start the substring from, and the second number, 3, is the length of substring. THIS IS DIFFERENT THAN PYTHON. ^^^^ To go to the end of substing, if you don't know length, just choose a very large length value, e.g. echo${TEXT:2:20000}

If you want to change selection, open document below and click on "Move attachment"

behavior of ${ VAR :- default } .${ VAR :? message } This will result in $VAR unless VAR is unset or null, in which case an error message containing message is displayed.${ VAR : offset } or <span>${ VAR : n : l } This produces the nth character of$ VAR and then the following l characters. If l is not present, then all characters to the right of the nth character are produced. This is useful for

#### Summary

status measured difficulty not learned 37% [default] 0

No repetitions