To input arguments into a Bash script, like any normal command line program, there are special variables set aside for this The arguments are stored in variables with a number in the order of the argument starting at 1 * First Argument: $1 * Second Argument: $2 * Third Argument: $3 * Example * command: ./script.bash alpha beta gamma * Variables: $1=='alpha'; $2=='beta'; $3=='gamma'
Attributes | Values |
---|---|
rdfs:label |
|
rdfs:comment |
|
dcterms:subject | |
abstract |
|