This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: CONTINUING Elementary Problems with Find
- To: GBradfor <GBradfor at fhssmtp dot redstone dot army dot mil>, gnu-win32 at cygnus dot com
- Subject: Re: CONTINUING Elementary Problems with Find
- From: Robert_Seeger at BayNetworks dot COM (Robert Seeger)
- Date: Wed, 22 Oct 1997 23:34:07 -0400
Try:
find . -name \*.c -print
The shell replaces *.c with all .c files in the directory. You have to use
\*.c to make the shell ignore the * character.
Hope this helps,
Robert Seeger
At 09:06 AM 10/22/97 -0500, GBradfor wrote:
> Thanks to all who responded to my first post. Yes, indeed, it was the
> Windows version of find that was causing my problem. However,
> correcting this problem has revealed another. Again, it is probably
> newbie in nature, but your assistance is appreciated.
>
> Taking my initial command line:
> find . -name *.c -print
>
> gives the following error:
> find: Paths must precede expression
> Usage: find [path...] [expression]
>
> Just to check things out, I got into bash and checked my pwd
> (/gnu_src/cdk/winsup), and I entered this absolute address into the
> command line. No luck, same error.
>
> Suggestions?
>
> Thanks again for your patience and your help.
>
> /s/
> Pat Bradford
>
> Reply to:
> gbradfor@redstone.army.mil
> AND/OR
> p_n_brad@traveller.com
>
>-
>For help on using this list (especially unsubscribing), send a message to
>"gnu-win32-request@cygnus.com" with one line of text: "help".
>
========================================
Robert Seeger
Network Engineer
Bay Networks
Telephone: (518)237-2087
Pager: (800)SKY-8888 Pin#1264792
Fax: (518)237-4190
Email: rseeger@baynetworks.com
Address: 224 5th Ave, Apt#2
Lansingburgh, NY 12182
========================================
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".