Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* Listing Directories (without files!)
@ 2000-03-20  5:00 Mark M.
  2000-03-20  5:00 ` Andy Wagg
  0 siblings, 1 reply; 5+ messages in thread
From: Mark M. @ 2000-03-20  5:00 UTC (permalink / raw)


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.





^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2000-03-21  5:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-03-20  5:00 Listing Directories (without files!) Mark M.
2000-03-20  5:00 ` Andy Wagg
2000-03-20  5:00   ` Knut Hellebø
2000-03-20  5:00     ` Mark M.
2000-03-21  5:00     ` Yong S. Yi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox