#!/bin/bash while [ "$1" != "" ] do echo $1 shift done exit 0
This is another way to process all input arguments - but not a very good way - what if one of the input arguments really is a null string?