Re: Can ls list subdirectories only?
- From: Rikishi 42 <fsck_spam@xxxxxxxxxx>
- Date: Sun, 5 Aug 2007 23:41:54 +0200
On 2007-08-05, Stephane CHAZELAS <this.address@xxxxxxxxxx> wrote:
[...]I would like to get a listing of subdirectories only, without the
files, in a
[...]ls -- */.
1. I'm not the OP, I don't want anything.[...]
2. Yes he did, see above "subdirectories only, without the files"
Well,
when you do
ls *
You list both the files in the current directory and the content
of all the subdirectories.
With
ls -- */
You list only the content of the subdirectories, that's how I
understood the OP's requirement.
So did I. But I merely pointed out that I tried your suggestion, and it
didn't work here. I get subdirs *with* their files.
I'm using SUSE 10.0 in text mode.
--
There is an art, it says, or rather, a knack to flying.
The knack lies in learning how to throw yourself at the ground and miss.
Douglas Adams
.
- Follow-Ups:
- Re: Can ls list subdirectories only?
- From: Stephane CHAZELAS
- Re: Can ls list subdirectories only?
- References:
- Re: Can ls list subdirectories only?
- From: Stephane CHAZELAS
- Re: Can ls list subdirectories only?
- From: Rikishi 42
- Re: Can ls list subdirectories only?
- From: Stephane CHAZELAS
- Re: Can ls list subdirectories only?
- From: Rikishi 42
- Re: Can ls list subdirectories only?
- From: Stephane CHAZELAS
- Re: Can ls list subdirectories only?
- Prev by Date: Re: Can ls list subdirectories only?
- Next by Date: Top 10 posters comp.unix.shell
- Previous by thread: Re: Can ls list subdirectories only?
- Next by thread: Re: Can ls list subdirectories only?
- Index(es):
Relevant Pages
|