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

Re: Ausgabe von ls -d



Guten Tag Jens Franik,

am Donnerstag, 13. März 2008 um 10:36 schriebst Du:

> Guten Tag Ralf Schmidt,

>> ich möchte mir nur die Unterverzeichnisse innerhalb eines Verzeichnisses
>> anzeigen lassen.

> find ./ -type d -maxdepth 1 -print

$ find ./ -type d -maxdepth 1 -print
find: warning: you have specified the -maxdepth option after a non-option argument -type, but options are not positional
ified before it as well as those specified after it).  Please specify options before other arguments.

Natürlich muss es heissen: ;-)

$ find . -maxdepth 1 -type d -print

und optional dahinter:(wenn dich der Punk [aktuelles Verzeichnis] stört)
 | grep -v "^.$"

-- 
Mit freundlichen Grüßen
Jens Franik
mailto:jens_@gmx.de



Reply to: