This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Regular Expressions from Bash Shell


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@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]