Hello,

Am Montag, den 16. April 2001 13:01:01 schrieb jemand[1]
> What is the best way to get the equivalent of the DOS command 
> "dir /ad" in linux?  That command will show just the (sub)directories 
> and not ordinary files.
> 
> I thought that "ls -d" would be the equivalent but it is not. 
> 
> I know I can do "ls -f | grep /" to get the directory, but putting it
> into a script like this fails because the / does not appear when the
> output of ls is redirected:

find . -type d -maxdepth 1

        MfG
        bmg

----------
[1] warum zum Geier ist der name weg?
-- 
"Des is völlig wurscht, was heut beschlos- | M G Berberich
 sen wird: I bin sowieso dagegn!"          | [EMAIL PROTECTED]
(SPD-Stadtrat Kurt Schindler; Regensburg)  | www.fmi.uni-passau.de/~berberic

Attachment: pgp01eaTMDvbl.pgp
Description: PGP signature

Reply via email to