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: <002c01c23a7e$893a8800$0101a8c0@albion> From: "Cliff Hones" To: References: <5 DOT 1 DOT 0 DOT 14 DOT 2 DOT 20020802162547 DOT 035e9a58 AT pop3 DOT cris DOT com> Subject: Re: Easy, quick, BASH question Date: Sat, 3 Aug 2002 00:44:24 +0100 Organization: Aonix Europe Ltd. MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 >... > To get anything more complicated, you must use a shell procedure. E.g.: > > hcgrep() { > grep -n "$@" $(find -name '*.[ch]') > } > >... In this particular example, find isn't necessary. Try: hcgrep() { grep -n "$@" *.c *.h"; } BTW, this is really OT for this list, since it's a Bash question and not Cygwin-specific. -- Cliff -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/