Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Wed, 1 Sep 2004 17:16:45 -0400 (EDT) From: Igor Pechtchanski Reply-To: cygwin AT cygwin DOT com To: Siegfried Heintze cc: cygwin AT cygwin DOT com Subject: Re: Regular Expressions from Bash Shell In-Reply-To: <200409011512203.SM01216@fasolt> Message-ID: References: <200409011512203 DOT SM01216 AT fasolt> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Scanned-By: MIMEDefang 2.39 On Wed, 1 Sep 2004, Siegfried Heintze wrote: > I want to use grep on all the FORTRAN source code files in the current > directory whose file names do not contain a "_" character. How do I do this? > > I'm using the extension of ".f" to designate FORTRAN. Disclaimer: this is not a shell programming support forum, and the above post is off-topic for this list, since it asks a general shell question not related to Cygwin. But, since I'm sending this e-mail anyway (and I hope this in no way encourages similar future posts): find . -name \*_\* -o -name \*.f -print | xargs grep EXPRESSION Again, the above is *not* Cygwin-specific. Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ pechtcha AT cs DOT nyu DOT edu ZZZzz /,`.-'`' -. ;-;;,_ igor AT watson DOT ibm DOT com |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D. '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! "Happiness lies in being privileged to work hard for long hours in doing whatever you think is worth doing." -- Dr. Jubal Harshaw -- 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/