Date: Mon, 22 Jan 1996 20:29:04 -0500 (EST) From: Richard Toren <rpt@miles.sso.loral.com> To: hackers@freebsd.org Subject: Re: recursive grep Message-ID: <Pine.SUN.3.91.960122201441.26644A-100000@miles> In-Reply-To: <199601222354.QAA01113@rover.village.org>
next in thread | previous in thread | raw e-mail | index | archive | help
If you search the web under 'threads', you will eventually find a
SunMicroSys location that has a number of examples of threaded code. One
of these examples a 'tgrep' which is a multi-threaded grep. It is used as
a testbed for different threading implementations.
This might be a good test for the people who want to put in kernel
threads. There is also a set of files there that convert POSIX threads to
Solaris threads.
---from the README ----
Utility: tgrep (threaded recursive grep)
Author: Ron Winacott
Email: ronw@canada.sun.com
Phone: (905) 477-0437 X 340 Or (1-800) 363-6200
Fax: (905) 477-0217
Address: 140 Renfrew Drive,
Suite #206,
Markham Ontario,
Canada. L3R 6B3
Group: Developers Support Center (SMCC) OpCom.
*Introduction.
Tgrep is a multi-threaded version of grep. Tgrep supports all but the
-w (word search) options of the normal grep command, and a few options
that are only avaliable to tgrep. The real change from grep, is that
tgrep will recurse down through sub-directories and search all files
for the target string. Tgrep searches files like the following command:
-------------------------------
====================================================
Rip Toren | The bad news is that C++ is not an object-oriented |
rpt@miles.sso.loral.com | programming language. .... The good news is that |
| C++ supports object-oriented programming. |
| C++ Programming & Fundamental Concepts |
| by Anderson & Heinze |
====================================================
On Mon, 22 Jan 1996, Warner Losh wrote:
> : I would like add options for recursive searching
> : (grep -R foo /usr/include).
>
> find /usr/local | xargs grep foo
>
> Why do we need another wart on grep? Especially when what you may
> want is find /usr/local -name \*f.h | xargs grep foo :-)
>
> Warner
>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.SUN.3.91.960122201441.26644A-100000>
