Not that it helps, but probably the simplest answer to your problem is: find . -type d -name "${char}*" -print However, I assume you're not allowed to use find. :) Kelly ************ techtalk at linuxchix.org http://www.linuxchix.org