From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,f4ff0b364602a2dc,start X-Google-Attributes: gidfee84,public From: "Mark M." Subject: Listing Directories (without files!) Date: 2000/03/20 Message-ID: #1/1 X-Deja-AN: 600047197 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2120.0 X-Complaints-To: abuse@direct.ca X-Trace: brie.direct.ca 953579248 216.66.140.117 (Mon, 20 Mar 2000 11:07:28 PST) Organization: Internet Direct - http://www.mydirect.com NNTP-Posting-Date: Mon, 20 Mar 2000 11:07:28 PST Newsgroups: comp.unix.osf.osf1 Currently I use the following command on our Digital Alphastation 4/166's (with OSF/1) to obtain a listing of subdirectories without the associated clutter of file names: ls -p | grep "/" This command uses "-p" to place a "/" at the end of each directory name, (but not file names), then searches for and displays only those entries with a "/", yielding a display of only the subdirectories. I do this because the directory has about 50,000 files in it and I have no other brief method of displaying just the directory names. QUESTION: IS THERE A BETTER WAY? Is there an "ls" option that does this? Mark M.