Re: Grep



__/ [ Martin Gregorie ] on Friday 24 February 2006 15:23 \__

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.

http://mboxgrep.sourceforge.net/

Nice one! I await the day when such tools are incorporated into FOSS/Linux
mail clients. OpenOffice 2 is finally doing regex, which the competitors'
products do not.

Roy

--
Roy S. Schestowitz
http://Schestowitz.com | SuSE Linux | PGP-Key: 0x74572E8E
9:05am up 7 days 21:24, 9 users, load average: 0.97, 0.72, 0.41
http://iuron.com - Open Source knowledge engine project
.



Relevant Pages

  • Re: Grep
    ... same request I get the sent mail file containing Gamblesby in the ... What am I doing wrong with grep please? ... OpenOffice 2 is finally doing regex, ...
    (uk.comp.os.linux)
  • Re: Regex Question
    ... Both of these are in a file (named "regex") on two different lines. ... My understanding of alternation is that it will look both for what is on the right and left of the pipe. ... grep in|hill regex ... This requires exactly one backslash in front of the pipe symbol, to prevent the shell from interpreting it. ...
    (Debian-User)
  • Re: EOL Anchor under Windows
    ... PL has a regex library, ... If "abc" is a matched string, then grep may be trying to match to ... I would think that most greps consider the "system" EOL as EOL. ...
    (comp.lang.perl.misc)
  • Re: EOL Anchor under Windows
    ... PL has a regex library, ... If "abc" is a matched string, then grep may be trying to match to ... I would think that most greps consider the "system" EOL as EOL. ...
    (comp.programming)
  • Re: Regex Question
    ... I'm reading up on Regular Expressions and I have a question about ... Both of these are in a file (named "regex") on two different lines. ... grep command. ... The first backslash is interpreted by bash as a special ...
    (Debian-User)