Re: ls lacking a feature?



Bernard Liang wrote:
how does one perform the equivalent MS-DOS's "dir /a:d" (directory
listing) in *ix (say, linux)?


ls -lF | grep -e "^d"

goose,
explore the wonders of grep, you'll be glad you did so :-)

.



Relevant Pages

  • Re: Some personal linux observations
    ... even if you knew the Linux equivalent command was something to ... the dir listing is much clearer and includes more ... with loads of excess info when they do not want it is obscure to me. ... It is a problem with ALL complex systems. ...
    (alt.os.linux)
  • Re: Linux v2.6.9 and GPL Buyout
    ... I don't think he likes Linux much but he said he ... and Blake to get me the "approved" listing. ... I pointed out that Novell had disclosed the Unixware SMP stuff at ... and he would claim any contribution from any IBM employee in Linux. ...
    (Linux-Kernel)
  • 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)
  • Re: Slightly OT: meaning of dir size in ls -l
    ... You need GnuPG to verify this message ... >> output when it's listing a directory entry? ... > On Linux it does mean, the total BLOCKS allocated for all files ...
    (comp.unix.shell)
  • Re: Linux...Great if you have tons of free time and a tolerance for unstable APPLICATIONS.
    ... all you gotta do is search old Redhat mailing lists and grep the ... >>Do you have any idea how bad Linux looks when you come back with answers ... want to grep kernel source code, ... Windows is sheer bliss in comparison. ...
    (comp.os.linux.misc)