Re: ls lacking a feature?



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. :-)

--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at above domain (but drop the www, obviously)
.



Relevant Pages

  • Re: reading character
    ... Chris Dollin said: ... but how we can do the same in linux? ... Richard Heathfield ... rjh at above domain ...
    (comp.lang.c)
  • Re: VB or VC++?
    ... >> Richard Heathfield wrote: ... >> Like Linux, whose availability in source form implies its instability? ... What makes it different from home computing, ... land in which entirely too many software developers dwell like gnomes, ...
    (comp.programming)
  • Re: VB or VC++?
    ... >>> programming for Windows but bypassing .Net. ... > Like Linux, whose availability in source form implies its instability? ... Richard Heathfield ...
    (comp.programming)
  • Re: grep is always recursive
    ... Linux does a better job than some other OS's at handling ... I use things like find and grep. ... behaves more like other GNU programs. ... operand of grep to be an option, even if it appears to be one. ...
    (Ubuntu)
  • Re: Fwd: Re: grep command not working as expected
    ... work fine for me on FreeBSD 6.1. ... If Linux behaves differently, then that's a bug in Linux ... FreeBSD use GNU grep ... ... Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing ...
    (freebsd-stable)