#!/bin/bash # illustrates the shift command # run with ./shift-example a b c d e # or with ./shift-example {a..z} while [ $# -ne 0 ] do echo $@ shift done