Re: ls lacking a feature?
- From: Bernard Liang <b_liang@xxxxxxxxxxxx>
- Date: Wed, 28 Jun 2006 15:02:22 -0700
Well,
ls -l | grep ^d | tr -s ' ' | cut -d' ' -f9
seems to do the trick for me, but this is a very cheap hack, and is dependent on what fields ls decides to print. I am definitely not convinced this is the best method, but unfortunately this is the simplest one I know that works.
-BL
Richard Heathfield wrote:
Bernard Liang said:
how does one perform the equivalent MS-DOS's "dir /a:d" (directory
listing) in *ix (say, linux)?
I use:
ls -al | grep ^d
but there's probably an easier way. :-)
.
- Follow-Ups:
- Re: ls lacking a feature?
- From: Roberto Waltman
- Re: ls lacking a feature?
- From: Rob Thorpe
- Re: ls lacking a feature?
- From: Richard Heathfield
- Re: ls lacking a feature?
- From: Phlip
- Re: ls lacking a feature?
- References:
- ls lacking a feature?
- From: Bernard Liang
- Re: ls lacking a feature?
- From: Richard Heathfield
- ls lacking a feature?
- Prev by Date: Re: ls lacking a feature?
- Next by Date: Re: ls lacking a feature?
- Previous by thread: Re: ls lacking a feature?
- Next by thread: Re: ls lacking a feature?
- Index(es):
Relevant Pages
|