Re: ls lacking a feature?



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
.


Quantcast