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