May 2018
Beginner
332 pages
7h 28m
English
Command-line arguments are required for the following reasons:
Check out the following command line:
[student@localhost ~]$ my_program arg1 arg2 arg3
If my_command is a bash shell script, then we can access every command-line positional parameter inside the script, as follows:
$0 would contain "my_program" # Command $1 would contain "arg1" # First parameter $2 would contain "arg2" # Second parameter $3 would contain "arg3" # Third parameter
The following is a summary of the positional ...