See if you have ksh. That has just what you are looking for. bash too I belive. -randy -- Randy Welch Mail to : ...!ncar!scicom!bldr!randy or rwelch at du.edu Boulder, CO VOICE : 303-442-6717 "Unfortunately, life contains an unavoidable element of unpredictability" -David Lynch "The Angriest Dog in the World"