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
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
Details
No repetitions
Discussion
Do you want to join discussion? Click here to log in or create user.