#! /bin/bash # # forloop - example of a bash forloop, this loop prints arguments passed to this# script one per line. # # The variable $@ contains the arguments from the command line # # Note that bash's FOR loop doesn't work at all like C++ or Java, see the # WHILE loop example to do the kind of things you would use a FOR loop to # do in other languages for argument in "$@"; do echo $argument done