[buug] Question: getting ls to only display entries that are directories
Ian Zimmerman
itz at speakeasy.org
Fri Aug 16 10:59:54 PDT 2002
Brian> Jon wrote:
>> ls -d */
Brian> Excellent. This is the trick (kludge?) I needed.
Brian> Why does this work and ls -d not work? It only returns "."
Brian> (current working directory).
Because the -d flag doesn't affect _what_ files are listed, only _how_
to list them (similar to -l etc.) The absence of -d means list
named directories recursively, its presence means list them plainly.
--
Ian Zimmerman, Oakland, California, U.S.A.
GPG: 433BA087 9C0F 194F 203A 63F7 B1B8 6E5A 8CA3 27DB 433B A087
EngSoc adopts market economy: cheap is wasteful, efficient is expensive.
More information about the buug
mailing list