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}
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}
status | not learned | measured difficulty | 37% [default] | last interval [days] | |||
---|---|---|---|---|---|---|---|
repetition number in this series | 0 | memorised on | scheduled repetition | ||||
scheduled repetition interval | last repetition or drill |