venkman@bebop:~/bin$ ./subPrintAllArgs.txt Today is Tue Mar 30 12:57:45 CST 2004 You supplied 0 arguments on the command line. venkman@bebop:~/bin$ ./subPrintAllArgs.txt UNI Panthers Today is Tue Mar 30 12:57:52 CST 2004 You supplied 2 arguments on the command line. UNI Panthers venkman@bebop:~/bin$ ./subPrintAllArgs.txt UNI Panther volleyball rules in 2004 Today is Tue Mar 30 12:59:18 CST 2004 You supplied 6 arguments on the command line. UNI Panther volleyball rules in 2004 HERE IS THE SOLUTION TO TODAY's problem. It uses two special SHELL variables: $# and $* venkman@bebop:~/bin$ cat subPrintAllArgs.txt #!/bin/bash echo echo "Today is `date`" echo echo You supplied $# arguments on the command line. echo for i in $* do echo "$i" done echo