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


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:
> 
> grep EXPRESSION *.f~_*

or:

find . -type f -name \*.f -maxdepth 1 \! -name \*_\* |xargs grep EXPR

--
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]