delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/09/08/20:16:36

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <BAY104-F29381636740A8DA88929E4D6980@phx.gbl>
X-Originating-Email: [mattmova AT hotmail DOT com]
X-Sender: mattmova AT hotmail DOT com
In-Reply-To: <090720051959.18224.431F46BE0000B4640000473022007507840A050E040D0C079D0A@comcast.net>
From: "Matthew Movafaghi" <mattmova AT hotmail DOT com>
To: ericblake AT comcast DOT net, cygwin AT cygwin DOT com
Subject: Re: Simple find command does not work for * .html
Date: Fri, 09 Sep 2005 00:15:36 +0000
Mime-Version: 1.0

It was user error... of course.  Thanks for the fix.

I was just trying to find all writiable files of certain types.


However, the command
'find /cygdrive/d -type f -perm -u+w -name \*.html' will sometimes not find 
a writable file when windows thinks that it is.  When viewed with ls -l, the 
file doe not look writable, but when viewed with dir *.html /A-r /S from a 
cmd prompt the file shows up.

Any thoughts?




Thanks for your help, Matt


>From: ericblake AT comcast DOT net (Eric Blake)
>To: Matthew Movafaghi <mattmova AT hotmail DOT com>, cygwin AT cygwin DOT com
>Subject: Re: Simple find command does not work for * .html
>Date: Wed, 07 Sep 2005 19:59:58 +0000
>Received: from rwcrmhc12.comcast.net ([204.127.198.39]) by 
>MC8-F2.hotmail.com with Microsoft SMTPSVC(6.0.3790.211); Wed, 7 Sep 2005 
>13:00:22 -0700
>Received: from 204.127.197.118 ([204.127.197.118])          by comcast.net 
>(rwcrmhc13) with SMTP          id <2005090719595801500iug5qe>; Wed, 7 Sep 
>2005 19:59:58 +0000
>Received: from [128.170.36.44] by 204.127.197.118;Wed, 07 Sep 2005 19:59:58 
>+0000
>X-Message-Info: JGTYoYF78jFTATaz65nma1QVF2iYgLfzrmQnceH08D4=
>X-Mailer: AT&T Message Center Version 1 (Dec 17 2004)
>X-Authenticated-Sender: ZXJpY2JsYWtlQGNvbWNhc3QubmV0
>Return-Path: ericblake AT comcast DOT net
>X-OriginalArrivalTime: 07 Sep 2005 20:00:22.0808 (UTC) 
>FILETIME=[C7EE9980:01C5B3E6]
>
> >
> > For some reason the following find command will not complete for *.html.
> >
> > It says: find: paths must precede expression....
>
>User error.  Remember that the shell does filename globbing before
>find ever sees its input (unless you have done set -f in a POSIX shell).
>If the current directory contains .html files, then you really are
>causing a syntax error.
>
> > `find d:\ -type f -perm -u+w -name *.properties`
>
>Try 'echo find d:\ -type f -perm -u+w -name *.html' to see what you
>were really doing, then try
>'find d:\ -type f -perm -u+w -name \*.html'
>to fix it.  And while you are at it, since this is cygwin, try
>'find /cygdrive/d -type f -perm -u+w -name \*.html'
>to get rid of that pesky backslash (are you in a cmd.com shell,
>explaining why you didn't quote it properly?) and behave more
>unixy.
>
>--
>Eric Blake
>volunteer cygwin findutils maintainer
>
>



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019