Re: encapulating a find function in a script
[email protected] Fri, 16 Jan 2004 11:53:49 -0800
| Newsgroups | gmane.linux.console |
|---|---|
| Message-ID | <[email protected]> |
> You may also find that using xargs instead of -exec is much faster > (fewer fork/execs). > > Something like: > > find "$1" -name "$2" -print0 | xargs -0 grep -H "$3" > > mrc > -- Thanks! Tried it - works great. Runs two or three times as fast and with half as many page faults. -Bob - To unsubscribe from this list: send the line "unsubscribe linux-console" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html