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 Message-ID: <41370068.2447EBA6@dessent.net> Date: Thu, 02 Sep 2004 04:13:44 -0700 From: Brian Dessent Organization: My own little world... MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: Regular Expressions from Bash Shell References: <20040901225456 DOT GJ9891 AT trixie DOT casa DOT cgf DOT cx> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Reply-To: cygwin AT cygwin DOT com 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/