*BSD News Article 47986


Return to BSD News archive

Xref: sserve comp.unix.bsd:16706 comp.unix.programmer:27525 comp.unix.questions:67409 comp.unix.shell:24053
Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!swidir.switch.ch!univ-lyon1.fr!jussieu.fr!news-rocq.inria.fr!news2.EUnet.fr!EU.net!newsfeed.internetmci.com!europa.chnt.gtegsc.com!gatech!news.mathworks.com!uunet!in1.uu.net!mr.net!news.mr.net!healthpartners.com!btv
From: btv@ldl.HealthPartners.COM (Bryan T. Vold)
Newsgroups: comp.unix.bsd,comp.unix.programmer,comp.unix.questions,comp.unix.shell
Subject: Re: A Unix command to obtain directory name only
Date: 27 Jul 1995 17:04:53 GMT
Organization: HealthPartners
Lines: 16
Message-ID: <3v8gvl$hc4@daffy.healthpartners.com>
References: <0E062001.3kluhh@anubis.han.de>
NNTP-Posting-Host: ldl.healthpartners.com

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'
-- 
btv@ldl.healthpartners.com               "The relentless pursuit of perfection"
Linux -- The Choice of a GNU Generation  "Make it so, Number One."