Re: ls lacking a feature?
- From: "Roger Willcocks" <roger@xxxxxxxx>
- Date: Thu, 29 Jun 2006 23:46:38 +0100
"Willem" <willem@xxxxxxxx> wrote in message
news:slrnea7rbh.pm8.willem@xxxxxxxxxxxxxxxxxx
Steve wrote:
) On 29 Jun 2006 12:09:05 +0300
) Jussi Piitulainen <jpiitula@xxxxxxxxxxxxxxxx> wrote:
)
)> Mark Triggs writes:
)
)> > ls -d */
)>
)> That appears to work in Bash, even though the slash is not part of a
)
) It also works in /bin/sh on my BSD boxes (where /bin/sh is actually
) ash IIRC).
)
)> directory name. But where it works, it's overkill. This will do:
)>
)> echo */
)
) As does this.
Both of them work, or neither of them work. */ simply expands to
all directory entries that (can) end in a slash, i.e. directories.
If you happen to be on bash, then typing asterisk-slash-tab-tab will
also list all directories, by the way, by using autocompletion.
Something similar might work on other shells as well.
asterisk-tab-tab (no slash) also lists directories in bash. I've no idea
why.
--
Roger
.
- Follow-Ups:
- Re: ls lacking a feature?
- From: Steve O'Hara-Smith
- Re: ls lacking a feature?
- From: Richard Heathfield
- Re: ls lacking a feature?
- References:
- ls lacking a feature?
- From: Bernard Liang
- Re: ls lacking a feature?
- From: Phlip
- Re: ls lacking a feature?
- From: Bernard Liang
- Re: ls lacking a feature?
- From: Mark Triggs
- Re: ls lacking a feature?
- From: Jussi Piitulainen
- Re: ls lacking a feature?
- From: Steve O'Hara-Smith
- Re: ls lacking a feature?
- From: Willem
- ls lacking a feature?
- Prev by Date: STL vector and push_back
- 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):