#!/bin/bash # a silly script that shows a simple use of shift # see 4.1 of the manual for more about shift i=$# while [ $# -gt 0 ] do echo $* shift done