notes/BASH Shift through Arguments-32nVb0Hy.sh
#!/bin/bash


#check for argument
if [ $# -lt 1 ]; then

  echo "Usage: $0 name(s)"
  exit 1
fi

#loop through all arguments
while (($#)); do
  echo "Hello $1"

  shift
done

syntax highlighted by Code2HTML, v. 0.9.1