#!/bin/bash while [ -n "$1" ]; do #do something here echo $1 shift done