Easy, quick, BASH question

Cliff Hones cliff@aonix.co.uk
Fri Aug 2 16:54:00 GMT 2002


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



More information about the Cygwin mailing list