Re: List of directories within a directory



On Wed, 30 Jan 2008 02:30:16 GMT, "John W. Krahn"
<someone@xxxxxxxxxxx> wrote:

Al Moodie wrote:
I have a directory with 200 sub directories in it. How do I create a
list of the sub directory names?


but how do I do it for the directories within a directory

my @dir_names = grep -d "$dirname/$_", readdir DIR;

That is what I need. I want to go into each sub directory in turn and
delete specific files.

Thanks also for the general education

Al.
.