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, write simple bash scripts (with just one line) that just prints out following line:
The cost is $1000
Answer
echo 'the cost is $1000'
^^ note the wrapping around single quotes
^^ can also be done as: echo "the cost is \$1000", but the first option of single quote wrapping is cleaner/better

Question
In linux, write simple bash scripts (with just one line) that just prints out following line:
The cost is $1000
Answer
?

Question
In linux, write simple bash scripts (with just one line) that just prints out following line:
The cost is $1000
Answer
echo 'the cost is $1000'
^^ note the wrapping around single quotes
^^ can also be done as: echo "the cost is \$1000", but the first option of single quote wrapping is cleaner/better
If you want to change selection, open document below and click on "Move attachment"

7. Shell Scripting
at them literally and reproduce your text exactly. For instance, you may want to echo an actual $ to the screen to produce an output like costs $1000 . You can use echo 'costs $1000' instead of <span>echo "costs $1000" . 7.11 Double-Quote Notation Double quotes " have the opposite sense of single quotes. They allow all shell interpretations to take place inside them. The reason they are used at all is

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.