Do you want BuboFlash to help you learning these things? Or do you want to add or correct something? Click here to log in or create user.



Question
In linux, you have variable TEXT with value "hithere", print out the length of TEXT.
Answer

echo ${#TEXT}

^^ note the special use of parameter expansion above


Question
In linux, you have variable TEXT with value "hithere", print out the length of TEXT.
Answer
?

Question
In linux, you have variable TEXT with value "hithere", print out the length of TEXT.
Answer

echo ${#TEXT}

^^ note the special use of parameter expansion above

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

20. Advanced Shell Scripting
If l is not present, then all characters to the right of the nth character are produced. This is useful for splitting up strings. Try: TEXT=scripting_for_phun echo ${TEXT:10:3} echo ${TEXT:10} <span>${# VAR } Gives the length of $ VAR. ${! PRE *} Gives a list of all variables whose names begin with PRE. ${ VAR # pattern } $ VAR is returned with the glob expression pattern removed from the le

Summary

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Details

No repetitions


Discussion

Do you want to join discussion? Click here to log in or create user.