In a shell script, if you want to refer to the last argument passed, you would use the _________ special variable.

  • $!
  • $@
  • $?
  • $_
In a shell script, you would use the $_ special variable to refer to the last argument passed. This variable holds the last argument to the last command that was executed.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *