Re: ls lacking a feature?
- From: Jussi Piitulainen <jpiitula@xxxxxxxxxxxxxxxx>
- Date: 29 Jun 2006 12:09:05 +0300
Mark Triggs writes:
Bernard Liang writes:
list all the directories in the cur direc
for ex, if ls -F lists
a b/ c/ d e f/
then i want a command that will give me
$ [some command]
b c f
or
b/ c/ f/
[...]
but this seems too complicated. shouldnt' there be a one-liner to
list all the directories?
I've always done:
ls -d */
That appears to work in Bash, even though the slash is not part of a
directory name. But where it works, it's overkill. This will do:
echo */
Nice.
.
- Follow-Ups:
- Re: ls lacking a feature?
- From: Steve O'Hara-Smith
- Re: ls lacking a feature?
- From: Mark Triggs
- 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
- ls lacking a feature?
- Prev by Date: Re: Use of semaphores
- 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):
Relevant Pages
|