# print all arguments: #!/bin/bash echo $@ # If you intend to do something with your arguments within a script: #!/bin/bash for i; do echo $i done
Here is what the above code is Doing:
1. The first line tells the computer what program to use to run the script.
2. The second line is a comment.
3. The third line prints the first argument.
4. The fourth line prints all arguments.
5. The fifth line prints all arguments, one per line.