This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Regular Expressions from Bash Shell
- From: Igor Pechtchanski <pechtcha at cs dot nyu dot edu>
- To: Siegfried Heintze <siegfried at heintze dot com>
- Cc: cygwin at cygwin dot com
- Date: Wed, 1 Sep 2004 17:16:45 -0400 (EDT)
- Subject: Re: Regular Expressions from Bash Shell
- References: <200409011512203.SM01216@fasolt>
- Reply-to: cygwin at cygwin dot com
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/