Return to BSD News archive
Xref: sserve comp.unix.misc:17672 comp.unix.admin:30423 comp.unix.bsd:16681 comp.unix.programmer:27007 comp.unix.questions:66627 comp.unix.shell:23612 Newsgroups: comp.unix.misc,comp.unix.admin,comp.unix.bsd,comp.unix.programmer,comp.unix.questions,comp.unix.shell Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!daffy!uwvax!uchinews!ncar!gatech!swrinde!dish.news.pipex.net!pipex!uknet!diasemi!gray From: gray@diasemi.co.uk (Dick Gray) Subject: Re: A Unix command to obtain directory name only In-Reply-To: Vincent Zoonekynd's message of 11 Jul 1995 14:29:49 +0200 Message-ID: <GRAY.95Jul12162947@eros.diasemi.co.uk> Lines: 14 Sender: gray@diasemi.co.uk (Dick Gray) Organization: Dialog Semiconductor References: <3tk3dc$4ml@rcp6.elan.af.mil> <9wspodijb6.fsf@carmen.ens-cachan.fr> Date: Wed, 12 Jul 1995 15:29:47 GMT >>>>> «Jay», Jay J Oh <OHJ%CSCADPS@mhs.elan.af.mil> wrote: Jay> I am trying to invoke a unix command to obtain only directory names Jay> listing for a given path. I tried using 'ls -d *', but this includes Jay> files also. I also tried 'find -type d . -print' but this command Jay> recursively list all the subdirectories, which I don't want. I like to have full details of directories, so I have an alias: alias lisd "ls -l | grep ^d" Dick -- Dick Gray gray@diasemi.co.uk _/_/_/ _/_/_/ _/ _/_/ _/_/ Dialog Semiconductor _/ _/ _/ _/ _/ _/ _/ _/ _/ Mixed-Signal Asics for All _/ _/ _/ _/_/_/_/ _/ _/ _/ _/ _/_/ tel: (+44) 1793 875327 _/_/_/ _/ _/ _/ _/_/_/ _/_/ _/_/