Re: ls lacking a feature?
- From: Willem <willem@xxxxxxxx>
- Date: Thu, 29 Jun 2006 15:10:41 +0000 (UTC)
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.
SaSW, Willem
--
Disclaimer: I am in no way responsible for any of the statements
made in the above text. For all I know I might be
drugged or something..
No I'm not paranoid. You all think I'm paranoid, don't you !
#EOT
.
- Follow-Ups:
- Re: ls lacking a feature?
- From: Roger Willcocks
- 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
- ls lacking a feature?
- Prev by Date: Re: Use of semaphores
- Next by Date: Re: Use of semaphores
- Previous by thread: Re: ls lacking a feature?
- Next by thread: Re: ls lacking a feature?
- Index(es):