From: " Clark Sims " <clarksimsgnu@my-Deja.com>
To: "cygwin@sourceware.cygnus.com" <cygwin@sourceware.cygnus.com>
Subject: Re: How do I list subdirectories?
Date: Wed, 25 Aug 1999 06:10:00 -0000 [thread overview]
Message-ID: <PDGENBLLHCGCCAAA@my-deja.com> (raw)
--
On Wed, 25 Aug 1999 05:25:34 Earnie Boyd wrote:
>--- Clark Sims <clarksimsgnu@my-Deja.com> wrote:
>> In the FSF version of bash
>> ls -F | egrep *\/
>> listed all of the subdirectories of the current working
>> directory.
>> In the Cygwin version the same command produces no
>> output.
>>
>> How do I list the subdirectories of the current working
>> directory?
>>
>
>Doesn't the egrep need to be `egrep .*\/'? The period indicates any character,
>the * indicates any number of the preceding character. Therefore to match what
>you want you need to specify .* to mean any number of any character.
>
Nice try but
ls -F | egrep .*\/
doesn't work.
I agree that it ought to. I don't understand why it
doesn't.
However Kim Poulsen found a command that does work:
ls -F | egrep \/
It seems that this is a question on pattern matching.
It seems to me that a directory which is mached by:
\/
should also be matched by
*\/
and
.*\/
Maybe I will understand the difference in
interpretations as I become more familiar
with Cygwin. Untill then I am stumped.
Thanks,
Clark
--== Sent via Deja.com http://www.deja.com/ ==--
Share what you know. Learn what you don't.
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com
WARNING: multiple messages have this Message-ID
From: " Clark Sims " <clarksimsgnu@my-Deja.com>
To: "cygwin@sourceware.cygnus.com" <cygwin@sourceware.cygnus.com>
Subject: Re: How do I list subdirectories?
Date: Tue, 31 Aug 1999 23:49:00 -0000 [thread overview]
Message-ID: <PDGENBLLHCGCCAAA@my-deja.com> (raw)
Message-ID: <19990831234900.oEk1g_k8jKVWTenpp3kfguq_J7_msZt9z0KaO8yL2bc@z> (raw)
--
On Wed, 25 Aug 1999 05:25:34 Earnie Boyd wrote:
>--- Clark Sims <clarksimsgnu@my-Deja.com> wrote:
>> In the FSF version of bash
>> ls -F | egrep *\/
>> listed all of the subdirectories of the current working
>> directory.
>> In the Cygwin version the same command produces no
>> output.
>>
>> How do I list the subdirectories of the current working
>> directory?
>>
>
>Doesn't the egrep need to be `egrep .*\/'? The period indicates any character,
>the * indicates any number of the preceding character. Therefore to match what
>you want you need to specify .* to mean any number of any character.
>
Nice try but
ls -F | egrep .*\/
doesn't work.
I agree that it ought to. I don't understand why it
doesn't.
However Kim Poulsen found a command that does work:
ls -F | egrep \/
It seems that this is a question on pattern matching.
It seems to me that a directory which is mached by:
\/
should also be matched by
*\/
and
.*\/
Maybe I will understand the difference in
interpretations as I become more familiar
with Cygwin. Untill then I am stumped.
Thanks,
Clark
--== Sent via Deja.com http://www.deja.com/ ==--
Share what you know. Learn what you don't.
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com
next reply other threads:[~1999-08-25 6:10 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-08-25 6:10 Clark Sims [this message]
1999-08-25 7:36 ` Keith Starsmeare
1999-08-31 23:49 ` Keith Starsmeare
1999-08-25 9:26 ` Joshua Rosen
1999-08-31 23:49 ` Joshua Rosen
1999-08-25 18:15 ` Ajit George
1999-08-26 12:25 ` Josh Baudhuin
1999-08-31 23:49 ` Josh Baudhuin
1999-08-31 23:49 ` Ajit George
1999-08-31 23:49 ` Clark Sims
-- strict thread matches above, loose matches on Subject: below --
1999-08-25 14:23 13mb80000-HallM(DR3132)37x10
1999-08-31 23:49 ` 13mb80000-HallM(DR3132)37x10
1999-08-25 13:41 13mb80000-HallM(DR3132)37x10
1999-08-31 23:49 ` 13mb80000-HallM(DR3132)37x10
1999-08-25 10:04 John Wiersba
1999-08-25 12:07 ` Joshua Rosen
1999-08-31 23:49 ` Joshua Rosen
1999-08-31 23:49 ` John Wiersba
1999-08-25 8:06 John Wiersba
1999-08-31 23:49 ` John Wiersba
1999-08-25 6:44 Earnie Boyd
1999-08-31 23:49 ` Earnie Boyd
1999-08-25 5:24 Earnie Boyd
1999-08-31 23:49 ` Earnie Boyd
1999-08-25 5:13 Clark Sims
1999-08-25 5:20 ` Kim Poulsen
1999-08-31 23:49 ` Kim Poulsen
1999-08-31 23:49 ` Clark Sims
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=PDGENBLLHCGCCAAA@my-deja.com \
--to=clarksimsgnu@my-deja.com \
--cc=cygwin@sourceware.cygnus.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).