delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
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 <brian AT dessent DOT net> |
Organization: | My own little world... |
MIME-Version: | 1.0 |
To: | cygwin AT cygwin DOT com |
Subject: | Re: Regular Expressions from Bash Shell |
References: | <F76C9B2DA2FC4C4CA0A18E288BBCBCF708217CF7 AT nihexchange24 DOT nih DOT gov> <20040901225456 DOT GJ9891 AT trixie DOT casa DOT cgf DOT cx> |
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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |