Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 8 Jun 2008 22:15:50 +0200 (CEST)
From:      Wojciech Puchar <wojtek@wojtek.tensor.gdynia.pl>
To:        Jos Chrispijn <jos@webrz.net>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Grep Guru
Message-ID:  <20080608221328.U9955@wojtek.tensor.gdynia.pl>
In-Reply-To: <484C3CC4.7050107@webrz.net>
References:  <484C3CC4.7050107@webrz.net>

next in thread | previous in thread | raw e-mail | index | archive | help
> I tried to make a grep script on find a string in all files on path ./ and 
> down. It does anything exept searching in files and reporting them.
> Is there a Grep Guru who can hint me out? Thanks,

find . -type f -print0|xargs -0 grep <grepoptions> <text to search>

anyway it's nothing about being Grep Guru, or Find Guru

but it's really worth to be Man Guru :)

man find
man xargs




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080608221328.U9955>