From: BobGian@U.Washington.edu
To: dalgoda@ix.netcom.com
Cc: linux-console@vger.kernel.org, jeff.holle@verizon.net
Subject: Re: encapulating a find function in a script
Date: Fri, 16 Jan 2004 11:53:49 -0800 [thread overview]
Message-ID: <200401161953.i0GJrnb28511@trumpet.radonc.washington.edu> (raw)
> 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
next reply other threads:[~2004-01-16 19:53 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-01-16 19:53 BobGian [this message]
2004-01-16 20:09 ` encapulating a find function in a script Mike Castle
-- strict thread matches above, loose matches on Subject: below --
2004-01-15 0:34 BobGian
2004-01-15 1:00 ` Mike Castle
2004-01-15 1:55 ` Jeffrey Holle
2004-01-16 21:09 ` Jeffrey Holle
2004-01-15 0:19 Jeffrey Holle
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200401161953.i0GJrnb28511@trumpet.radonc.washington.edu \
--to=bobgian@u.washington.edu \
--cc=dalgoda@ix.netcom.com \
--cc=jeff.holle@verizon.net \
--cc=linux-console@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).