#!/bin/bash # this script just demonstrates the use of shift while [ $# -gt 0 ] do echo $* shift done