in reply to Checking for Directories

-x $file does it exist foreach your way through a directory handel testing w/ (-x $file && -d $file) to test for subdirectories ... pop em ont an aray or whatever to store the vals