Re: List of directories within a directory
- From: Al Moodie <nospam@xxxxxxxxxx>
- Date: Tue, 29 Jan 2008 21:41:57 -0500
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.
.
- Follow-Ups:
- Re: List of directories within a directory
- From: Uri Guttman
- Re: List of directories within a directory
- References:
- List of directories within a directory
- From: Al Moodie
- Re: List of directories within a directory
- From: John W. Krahn
- List of directories within a directory
- Prev by Date: Re: "negative" regexp
- Next by Date: Re: List of directories within a directory
- Previous by thread: Re: List of directories within a directory
- Next by thread: Re: List of directories within a directory
- Index(es):