Re: Grep Guru

2008-06-11 Thread Ian Smith
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

Re: Grep Guru

2008-06-09 Thread Giorgos Keramidas
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|xa

Re: Grep Guru

2008-06-09 Thread Ian Smith
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 > > > >There's no more need for find | xargs > > > >Try:

Re: Grep Guru

2008-06-09 Thread Giorgos Keramidas
On Sun, 08 Jun 2008 22:23:19 +0200, Simon Jolle sjolle <[EMAIL PROTECTED]> 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 i

Re: Grep Guru

2008-06-09 Thread Giorgos Keramidas
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 >> >>There's no more need for find | xargs >> >>Try: >> >>find . -t

Re: Grep Guru

2008-06-08 Thread Jeffrey Goldberg
On Jun 8, 2008, at 5:50 PM, Raphael Becker wrote: find . -type -f -exec grep {} \+ -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 ___ freebsd-questions@free

Re: Grep Guru

2008-06-08 Thread Bill Campbell
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 > >There's no more need for find | xargs > >Try: > >find . -type -f -exec grep {} \+ > >-exec foo {} \+ behaves like xargs foo >-exec foo {} \

Re: Grep Guru

2008-06-08 Thread Raphael Becker
On Sun, Jun 08, 2008 at 10:15:50PM +0200, Wojciech Puchar wrote: > find . -type f -print0|xargs -0 grep There's no more need for find | xargs Try: find . -type -f -exec grep {} \+ -exec foo {} \+ behaves like xargs foo -exec foo {} \; exec foo for every file Regards Raphael -- Raphael

Re: Grep Guru

2008-06-08 Thread Simon Jolle sjolle
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 Descriptio

Re: Grep Guru

2008-06-08 Thread Frank Shute
On Sun, Jun 08, 2008 at 09:34:20PM +0100, Frank Shute wrote: > > On Sun, Jun 08, 2008 at 10:23:19PM +0200, 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 fil

Re: Grep Guru

2008-06-08 Thread Paul Schmehl
--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 hin

Re: Grep Guru

2008-06-08 Thread Frank Shute
On Sun, Jun 08, 2008 at 10:23:19PM +0200, 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 a

Re: Grep Guru

2008-06-08 Thread Paul Procacci
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@freebsd.

Re: Grep Guru

2008-06-08 Thread Matthew Seaman
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

Re: Grep Guru

2008-06-08 Thread Simon Jolle sjolle
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

Re: Grep Guru

2008-06-08 Thread Wojciech Puchar
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 anyway it's nothing about being Grep Guru, or Find Guru but i

Re: Grep Guru

2008-06-08 Thread Bill Campbell
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