Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Wed, 1 Sep 2004 15:31:49 -0700 From: Yitzchak Scott-Thoennes To: cygwin AT cygwin DOT com Subject: Re: Regular Expressions from Bash Shell Message-ID: <20040901223149.GE1012@efn.org> References: <6 DOT 1 DOT 0 DOT 6 DOT 0 DOT 20040901144930 DOT 03492ec8 AT pop DOT prospeed DOT net> <200409011512203 DOT SM01216 AT fasolt> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200409011512203.SM01216@fasolt> User-Agent: Mutt/1.4.1i Organization: bs"d X-IsSubscribed: yes 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 '*_*'|xargs grep is how I would do it, but there's probably a better way. (Assuming you have no subdirectories ending with .f) -- 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/