Subject: Re: Easy, quick, BASH question
From: "Cliff Hones" <[email-masked]>
To: <[email-masked]>
Date: Sat, 3 Aug 2002 00:44:24 +0100

>...
> 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/