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, in bash scripting if you have script that you run as: ./test.sh one two three
And the above test script has line: echo $0
What is the output?
Answer
./test.sh

Question
In linux, in bash scripting if you have script that you run as: ./test.sh one two three
And the above test script has line: echo $0
What is the output?
Answer
?

Question
In linux, in bash scripting if you have script that you run as: ./test.sh one two three
And the above test script has line: echo $0
What is the output?
Answer
./test.sh
If you want to change selection, open document below and click on "Move attachment"

7. Shell Scripting
rsion 0.0.3" exit 0 ;; -*) echo "Error: no such option $1" usage exit 1 ;; esac shift done myprog.sh can now run with multiple arguments on the command-line. 7.9 More on Command-Line Arguments: <span>$@ and $0 Whereas $1 , $2 , $3 , etc. expand to the individual arguments passed to the program, $@ expands to all arguments. This behavior is useful for passing all remaining arguments ont

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.