In linux, in bash scripting, what does $0 mean (give an example to illustrate your knowledge)?
Answer
$0 references the name of the bash program/script itself (for example, if you run the script as "./test.sh one two", $0 is ./test.sh
Question
In linux, in bash scripting, what does $0 mean (give an example to illustrate your knowledge)?
Answer
?
Question
In linux, in bash scripting, what does $0 mean (give an example to illustrate your knowledge)?
Answer
$0 references the name of the bash program/script itself (for example, if you run the script as "./test.sh one two", $0 is ./test.sh
If you want to change selection, open document below and click on "Move attachment"
7. Shell Scripting og2.sh "$@" fi $0 means the name of the program itself and not any command-line argument. It is the command used to invoke the current program. In the above cases, it is ./myprog.sh . Note that <span>$0 is immune to shift operations. 7.10 Single Forward Quote Notation Single forward quotes ' protect the enclosed text from the shell. In other words, you can place any odd characters insi
Summary
status
not learned
measured difficulty
37% [default]
last interval [days]
repetition number in this series
0
memorised 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.