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 declared: x=2, print out the value of x with 2 decimal points (i.e. 2.00), on a single line followed by newline.
Answer

printf "%0.2f\n" $x

^^ note the use of the printf build-in shell command


Question
In linux, you have variable declared: x=2, print out the value of x with 2 decimal points (i.e. 2.00), on a single line followed by newline.
Answer
?

Question
In linux, you have variable declared: x=2, print out the value of x with 2 decimal points (i.e. 2.00), on a single line followed by newline.
Answer

printf "%0.2f\n" $x

^^ note the use of the printf build-in shell command

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

20. Advanced Shell Scripting
directory is saved onto a list of directories. At any time, entering popd returns you to the previous directory. This is nice for navigation since it keeps a history of wherever you have been. <span>printf format args ... This is like the C printf function. It outputs to the terminal like echo but is useful for more complex formatting of output. See printf (3) for details and try printf "

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.