This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
>... > 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/
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |