#!/bin/sh SUBMIT= while true do echo "Choose one of the following:" echo "s: Stage files, but do not submit." echo "a: Stage and submit all files." echo "t: Stage and submit all files," echo " with a delay in between each file" echo "x: Exit." echo read SUBMIT case $SUBMIT in s) echo echo "in option s" echo ;; a) echo echo "in option a" echo ;; t) echo echo "in option t" echo ;; x) exit 0 ;; *) echo >&2 echo "Invalid option." >&2 echo >&2 ;; esac done