Bash Scripting - Variables
Which of the following is the correct way to print the first argument passed to a bash script?
$1 holds the first argument passed to the script.$0 is the script name, $# is the argument count, and $$ is the script's process ID, so they are incorrect for printing the first argument.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions