[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Unidentified subject!


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


[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!"          | berberic@fmi.uni-passau.de
(SPD-Stadtrat Kurt Schindler; Regensburg)  | www.fmi.uni-passau.de/~berberic

Attachment: pgpbLeEpRDV3m.pgp
Description: PGP signature

Reply to: