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 following function defined in your shell script, how do you call it?
function usage ()
{
        echo "Usage:"
        echo "        myprog.sh [--test|--help|--version]"
}
Answer
usage
^^ note that missing ()!!!

Question
In linux, you have following function defined in your shell script, how do you call it?
function usage ()
{
        echo "Usage:"
        echo "        myprog.sh [--test|--help|--version]"
}
Answer
?

Question
In linux, you have following function defined in your shell script, how do you call it?
function usage ()
{
        echo "Usage:"
        echo "        myprog.sh [--test|--help|--version]"
}
Answer
usage
^^ note that missing ()!!!
If you want to change selection, open document below and click on "Move attachment"

7. Shell Scripting
For example: 5 10 15 20 25 #!/bin/sh 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) <span>usage ;; --version|-v) echo "myprog.sh version 0.0.2" exit 0 ;; -*) echo "Error: no such option $1" usage exit 1 ;; esac echo "You typed \"$1\" on the command-line" Wherever the usage keyword

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.