Question: Within a shell script the variable $1 (a variable called a positional parameter ) is expanded into the first argument on the command line the
Within a shell script the variable $1 (a variable called a positional parameter) is expanded into the first argument on the command line the script was called with (in the example $ ./myscript test the variable $1 equals test). Write and execute a script named first that displays (sends to standard output) the first argument on the command line it was called with. Include the command interpreter line and a comment.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
