Re: Grep



Martin Gregorie <martin@xxxxxxxxxxxxxxxxxxx> wrote:
Roy Schestowitz wrote:
__/ [ Ken Parkes ] on Thursday 23 February 2006 21:49 \__

On Thu, 23 Feb 2006 21:03:42 +0000, Darren Salt wrote:

I demand that Ken Parkes may or may not have written...

Have been searching for an old sent email. If I enter, in a terminal,
<grep Gamblesby /mnt/backup/username/.Mail> I get no response from the
instruction. If I open Tools>Find File in Konqueror, and enter the
same request I get the sent mail file containing Gamblesby in the message
within
15 seconds. What am I doing wrong with grep please? I thought Find
File was just a front end for grep.
-R, -r, --recursive, --directories=recurse. Take your pick...
Many thanks Darren. O'Reilly Linux in a nutshell was no help, said -R
was to preprocess with refer. Your post made me check again. I had
turned two pages, from grep -d to groff -f. Quietly goes into a corner
and bangs head against wall.

Ken.

For simplicity, it is often worth using the facilities provided the mail
program to do full body search. Good applications will build good indices or
hash tables to make subsequent searches faster. The advantage of this
approach is that you get the message in question well-encapsulated and among
context. Failing that, I choose to use fgrep -R * in the appropriate
directory.

Kind regards,

Roy
mboxgrep is quite nice. By default it does regex searches among the
headers and pulls out the entire e-mail.

Its open source, not a standard part of any distro.



It's in Gentoo marked as unstable on x86 but Gentoo is pretty
conservative on what goes in stable for minor packages. Not sure whether
that makes it a standard part or not.

.



Relevant Pages

  • Re: Grep
    ... same request I get the sent mail file containing Gamblesby in the message ... What am I doing wrong with grep please? ...
    (uk.comp.os.linux)
  • Re: Grep
    ... same request I get the sent mail file containing Gamblesby in the message ... What am I doing wrong with grep please? ... martin@ | Martin Gregorie ...
    (uk.comp.os.linux)
  • Re: Grep
    ... request I get the sent mail file containing Gamblesby in the message within ... What am I doing wrong with grep please? ...
    (uk.comp.os.linux)
  • Re: Grep
    ... same request I get the sent mail file containing Gamblesby in the message ... Find File was just a front end for grep. ...
    (uk.comp.os.linux)
  • Re: Novell Desktop Linux 10: getting closer to a toss up between Linux & Windows?
    ... On the other hand Linux has a well known (and sort of (almost) standardized ... But /video has become a sort of standard I think. ... I use 'locate' and 'grep' many times a day. ... As you have discovered finding something across many disk and partitions with so many giga bytes ...
    (comp.sys.ibm.pc.hardware.chips)