*BSD News Article 48122


Return to BSD News archive

Xref: sserve comp.unix.bsd:16707 comp.unix.programmer:27573 comp.unix.questions:67511 comp.unix.shell:24097
Path: sserve!euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!news.sprintlink.net!malgudi.oar.net!zen.dayton.net!news
From: danfin@dayton.net (Daniel Finn)
Newsgroups: comp.unix.bsd,comp.unix.programmer,comp.unix.questions,comp.unix.shell
Subject: Re: A Unix command to obtain directory name only
Date: Mon, 31 Jul 1995 15:05:24 GMT
Organization: Lockheed Martin Technical Services Group
Lines: 27
Message-ID: <3vip73$176@zen.dayton.net>
References: <0E062001.3kluhh@anubis.han.de> <3v8gvl$hc4@daffy.healthpartners.com>
NNTP-Posting-Host: ppp131.dayton.net
X-Newsreader: Forte Free Agent 1.0.82

btv@ldl.HealthPartners.COM (Bryan T. Vold) wrote:

>In article <0E062001.3kluhh@anubis.han.de>,
>Jens-Uwe Mager <jum@anubis.han.de> wrote:
>>
>>In article <3uof3h$lsk@phcoms4.seri.philips.nl> (comp.unix.bsd,comp.unix.programmer,comp.unix.questions,comp.unix.shell), J.M.Burgers@nl.cis.philips.com (J.M. Burgers) writes:
>>
>>> Try
>>> file * | grep dir
>>
>>This will not work in a localized environment, that means you have to
>>set the environment variable LANG=C before executing that.

>How about:
>alias 'ls -l |grep ^d'
>-- 
Why not

ls -lap|grep /

-------------------
Daniel R. Finn                              danfin@dayton.net
Network Engineer                            http://www.dayton.net/~danfin
Martin Marietta Tech Services Group         Fighting for peace is like
  a Subsidiary of Lockheed Martin           making love for virginity.