On Mon, 9 Jun 2008, Giorgos Keramidas wrote:
On Tue, 10 Jun 2008 01:44:36 +1000 (EST), Ian Smith [EMAIL PROTECTED]
wrote:
On Sun, 8 Jun 2008 16:07:12 -0700 Bill Campbell [EMAIL PROTECTED] wrote:
On Mon, Jun 09, 2008, Raphael Becker wrote:
On Sun, Jun 08, 2008 at 10:15:50PM +0200,
On Sun, 8 Jun 2008 16:07:12 -0700, Bill Campbell [EMAIL PROTECTED] wrote:
On Mon, Jun 09, 2008, Raphael Becker wrote:
On Sun, Jun 08, 2008 at 10:15:50PM +0200, Wojciech Puchar wrote:
find . -type f -print0|xargs -0 grep grepoptions text to search
There's no more need for find | xargs
Try:
and reporting
them. Is there a Grep Guru who can hint me out? Thanks,
I expect you need something like:
find . -type f -print0 | xargs -0 grep pattern
Or install the GNU grep (from the man)
-R, -r, --recursive
Read all files under each directory, recursively; this is
equivalent
On Sun, 8 Jun 2008 16:07:12 -0700 Bill Campbell [EMAIL PROTECTED] wrote:
On Mon, Jun 09, 2008, Raphael Becker wrote:
On Sun, Jun 08, 2008 at 10:15:50PM +0200, Wojciech Puchar wrote:
find . -type f -print0|xargs -0 grep grepoptions text to search
There's no more need for find | xargs
On Tue, 10 Jun 2008 01:44:36 +1000 (EST), Ian Smith [EMAIL PROTECTED] wrote:
On Sun, 8 Jun 2008 16:07:12 -0700 Bill Campbell [EMAIL PROTECTED] wrote:
On Mon, Jun 09, 2008, Raphael Becker wrote:
On Sun, Jun 08, 2008 at 10:15:50PM +0200, Wojciech Puchar wrote:
find . -type f -print0|xargs -0 grep
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,
-- Jos
___
freebsd-questions@freebsd.org mailing list
http
On Sun, Jun 08, 2008, Jos Chrispijn wrote:
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,
I expect you need something like:
find . -type f -print0
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
On 06/08/2008 10:12 PM, Bill Campbell wrote:
On Sun, Jun 08, 2008, Jos Chrispijn wrote:
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,
I expect
Simon Jolle sjolle wrote:
On 06/08/2008 10:12 PM, Bill Campbell wrote:
On Sun, Jun 08, 2008, Jos Chrispijn wrote:
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
Jos Chrispijn wrote:
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,
-- Jos
___
freebsd-questions
and reporting them.
Is there a Grep Guru who can hint me out? Thanks,
I expect you need something like:
find . -type f -print0 | xargs -0 grep pattern
Or install the GNU grep (from the man)
-R, -r, --recursive
Read all files under each directory, recursively; this is
equivalent
--On June 8, 2008 1:12:56 PM -0700 Bill Campbell [EMAIL PROTECTED]
wrote:
On Sun, Jun 08, 2008, Jos Chrispijn wrote:
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
./
and down. It does anything exept searching in files and reporting them.
Is there a Grep Guru who can hint me out? Thanks,
I expect you need something like:
find . -type f -print0 | xargs -0 grep pattern
Or install the GNU grep (from the man)
-R, -r, --recursive
On 06/08/2008 10:26 PM, Matthew Seaman wrote:
The system supplied grep(1) /is/ gnu grep:
happy-idiot-talk:~:% grep --version grep (GNU grep) 2.5.1-FreeBSD
[...]
Sorry you are right. I didn't had any FreeBSD box around.
Cheers,
Matthew
cheers
Simon
signature.asc
Description:
On Sun, Jun 08, 2008 at 10:15:50PM +0200, Wojciech Puchar wrote:
find . -type f -print0|xargs -0 grep grepoptions text to search
There's no more need for find | xargs
Try:
find . -type -f -exec grep grepoptions text to search {} \+
-exec foo {} \+ behaves like xargs foo
-exec foo {} \;
On Mon, Jun 09, 2008, Raphael Becker wrote:
On Sun, Jun 08, 2008 at 10:15:50PM +0200, Wojciech Puchar wrote:
find . -type f -print0|xargs -0 grep grepoptions text to search
There's no more need for find | xargs
Try:
find . -type -f -exec grep grepoptions text to search {} \+
-exec foo {} \+
On Jun 8, 2008, at 5:50 PM, Raphael Becker wrote:
find . -type -f -exec grep grepoptions text to search {} \+
-exec foo {} \+ behaves like xargs foo
-exec foo {} \; exec foo for every file
Way cool! I hadn't known that about find(1).
Cheers,
-j
18 matches
Mail list logo