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 a shell script with line "x=2", how do you print out the value of x
Answer
echo $x
^^ note the $ syntax does parameter/variable expansion, i.e. accesses the value of x, without it just "x" gets printed

Question
In linux, you have a shell script with line "x=2", how do you print out the value of x
Answer
?

Question
In linux, you have a shell script with line "x=2", how do you print out the value of x
Answer
echo $x
^^ note the $ syntax does parameter/variable expansion, i.e. accesses the value of x, without it just "x" gets printed
If you want to change selection, open document below and click on "Move attachment"

7. Shell Scripting
, and then inserts text read from the keyboard into that pigeonhole. Thereafter, whenever the shell encounters NM , its contents are written out instead of the letters NM (provided you write a <span>$ in front of it). We say that NM is a variable because its contents can vary. You can use shell scripts like a calculator. Try 5 echo "I will work out X*Y" echo "Enter X" read X echo "En

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.