You're reviewing a shell script and notice that it uses a loop to process command-line arguments. Which special variable in shell scripting is typically used to handle this scenario?
- $@
- $*
- $1
- $ARG
In shell scripting, the special variable $@ is typically used to handle command-line arguments. It represents all the arguments passed to the script as an array. Using $@ allows you to iterate through and process each argument in a loop.
Loading...
Related Quiz
- To iterate over a range of numbers in a loop, one might use the seq command combined with the _________ loop.
- The ________ command in Linux allows you to enforce a user to change their password upon the next login.
- For VPN connections in Linux, which tool can be used to set up a tunnel based on SSL/TLS?
- What is the primary keyword to start a loop that will iterate a fixed number of times in shell scripting?
- In the context of networking, what does the acronym "NAT" stand for?