Re: Regular Expressions from Bash Shell

2004-09-02 Thread Christopher Faylor
On Thu, Sep 02, 2004 at 12:20:13PM -0400, Igor Pechtchanski wrote: >P.S. Should I add TMTOWTDI to the OLOCA? ;-) Sure. cgf -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html

Re: Regular Expressions from Bash Shell

2004-09-02 Thread Igor Pechtchanski
Well, since CGF himself didn't deem this too off-topic... :-) On Wed, 1 Sep 2004, Christopher Faylor wrote: > On Wed, Sep 01, 2004 at 06:07:15PM -0400, Buchbinder, Barry (NIH/NIAID) wrote: > >At Wednesday, September 01, 2004 5:17 PM, Igor Pechtchanski wrote: > >> On Wed, 1 Sep 2004, Siegfried Hei

Re: Regular Expressions from Bash Shell

2004-09-02 Thread Brian Dessent
Christopher Faylor wrote: > I don't think either of those meets the letter of the original request. > > If you only want the files in the current directory then something like: > > ls -d *.f | grep -v '^_' | xargs grep EXPRESSION > > should work better. > > Or if you use zsh you can just do: >

Re: Regular Expressions from Bash Shell

2004-09-01 Thread Christopher Faylor
On Wed, Sep 01, 2004 at 06:07:15PM -0400, Buchbinder, Barry (NIH/NIAID) wrote: >At Wednesday, September 01, 2004 5:17 PM, Igor Pechtchanski wrote: >> 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

Re: Regular Expressions from Bash Shell

2004-09-01 Thread Yitzchak Scott-Thoennes
On Wed, Sep 01, 2004 at 03:09:21PM -0600, 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. find *.f ! -name

RE: Regular Expressions from Bash Shell

2004-09-01 Thread Buchbinder, Barry (NIH/NIAID)
At Wednesday, September 01, 2004 5:17 PM, Igor Pechtchanski wrote: > 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 ext

Re: Regular Expressions from Bash Shell

2004-09-01 Thread Igor Pechtchanski
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 programmin

Regular Expressions from Bash Shell

2004-09-01 Thread Siegfried Heintze
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. Thank you, Siegfried -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-s