#! /bin/bash # # example of using the shift command # # Call this script with a few arguments to see it at work # echo echo "Call this script with arguments such as 1 2 3 4" echo echo "Before shift is called the arg list is: $1 $2 $3 $4" shift echo "shift was called now the arg list is: $1 $2 $3 $4" shift echo "shift was called now the arg list is: $1 $2 $3 $4" shift echo "shift was called now the arg list is: $1 $2 $3 $4" shift echo "shift was called now the arg list is: $1 $2 $3 $4"