delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/09/01/17:16:54

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
Date: Wed, 1 Sep 2004 17:16:45 -0400 (EDT)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Siegfried Heintze <siegfried AT heintze DOT com>
cc: cygwin AT cygwin DOT com
Subject: Re: Regular Expressions from Bash Shell
In-Reply-To: <200409011512203.SM01216@fasolt>
Message-ID: <Pine.GSO.4.61.0409011713200.5041@slinky.cs.nyu.edu>
References: <200409011512203 DOT SM01216 AT fasolt>
MIME-Version: 1.0
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/

- Raw text -


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