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 shell script function called usage that simply prints our "usage" when called (note: this excersice just checks your recall of function syntax in bash scripting).
Answer
function usage()
{
    echo "usage"
}
^^ note the function keyword
^^ note the function block enclosed in {}

Question
In linux, write simple shell script function called usage that simply prints our "usage" when called (note: this excersice just checks your recall of function syntax in bash scripting).
Answer
?

Question
In linux, write simple shell script function called usage that simply prints our "usage" when called (note: this excersice just checks your recall of function syntax in bash scripting).
Answer
function usage()
{
    echo "usage"
}
^^ note the function keyword
^^ note the function block enclosed in {}
If you want to change selection, open document below and click on "Move attachment"

7. Shell Scripting
e the same functionality. Function definitions provide a way to group statement blocks into one. A function groups a list of commands and assigns it a name. For example: 5 10 15 20 25 #!/bin/sh <span>function usage () { echo "Usage:" echo " myprog.sh [--test|--help|--version]" } case $1 in --test|-t) echo "you used the --test option" exit 0 ;; --help|-h) usage ;; --version|-v) echo "myprog.s

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.