Regular Expressions from Bash Shell

Brian Dessent brian@dessent.net
Thu Sep 2 11:09:00 GMT 2004


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/



More information about the Cygwin mailing list