On Sat, 27 Apr 2002 00:39:20 -0400 Tom Pollerman <[EMAIL PROTECTED]> wrote:
> On Fri, 26 Apr 2002 23:38:14 -0400 > Tom Pollerman <[EMAIL PROTECTED]> wrote: > > > > > > > > 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> > > > OPPS!, this should read ls <directory> --ignore=<pattern> > > > or: ls / --ignore *.* > > > AND this: ls / --ignore=*.* > > > gives a listing of all the directories under / > > > > This also works with the 'dir' command. > > Way too much coffee...........Tom > > > > Regards, > > > > > Tom _______________________________________________ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list