In case you ever find yourself having to write bash scripts for a living...(I tend to use Python for any script longer than 10 lines) http://www.forestent.com/wiki/ShUnit2:Main_Page Grig