> On Fri, Apr 26, 2002 at 05:09:45PM -0700, Patrick Nelson wrote:
>
> > This may be really simple, but I just can't seem to get my hands around it.
> > How do I get a directory listing using ls (or some other command maybe).
> > All I want is the directories names (no files or .. or . ) and no other
> > information, just the directory names in the current directory (not
> > concerned with how the names are delimited). I'm pulling the directory
> > names into a script for processing.
This may not work in every case, but may work for your needs.....
ls <directory> --ignore <pattern>
or: ls / --ignore *.*
gives a listing of all the directories under /
This also works with the 'dir' command.
Regards,
Tom
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list