This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: Easy, quick, BASH question
- From: "Cliff Hones" <cliff at aonix dot co dot uk>
- To: <cygwin at cygwin dot com>
- Date: Sat, 3 Aug 2002 00:44:24 +0100
- Subject: Re: Easy, quick, BASH question
- Organization: Aonix Europe Ltd.
- References: <5.1.0.14.2.20020802162547.035e9a58@pop3.cris.com>
>...
> 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/