Back to Developer Roadmap

Script Arguments using $@

src/data/roadmaps/shell-bash/content/@VLzMSaoVA46PTLHwZtDUx.md

4.0645 B
Original Source

Script Arguments using $@

$@ is a special variable in shell scripting that expands to all the positional parameters (arguments) passed to a script. Each argument is treated as a separate word, even if it contains spaces, ensuring that the script receives and processes each argument individually. This is particularly useful when you need to iterate over or manipulate each argument provided to your script.

Visit the following resources to learn more: