Web lists-archives.com

Re: Does bash have a tool ?

On 03/04/2018 11:27 AM, Curt wrote:
On 2018-03-04, Richard Owlett <rowlett@xxxxxxxxxxx> wrote:
My eventual goal is to create a personalized FAQ.
To that end I've collected all my outgoing mail which DOES NOT have
"Re:" in the Subject into a single file {used standard SeaMonkey tools}.

Using a text editor's search&replace function I've placed "KEY1" at the
beginning of the body of each message. Similarly, I've placed "KEY2" at
the end of each body.

Searches led to <http://www.dsl.org/cookbook/cookbook_16.html> which
describes tools to do word frequency tasks, primarily with bash builtins.

First I need to eliminate the irrelevant text between "KEY2" of the
previous message and "KEY1" of the message of interest. It should be
straight forard to do in BASIC.

vim (hit escape to get into command mode)


will delete everything between KEY2 and KEY1, excluding the
matching lines.

Haven't looked up the syntax you referenced. HOWEVER, an initial browse of vim.org immediately led to a half dozen pages of interest which an additional half dozen (at least) things that are inherent in vim that I had not mentioned. As today should be chilly and damp, I suspect where I will be warm, dry, and becoming educated.

Thank you.

I think. Well, I just gave it a trivial workout and it worked (for a
trivial case).

In many ways, my needs are "trivial" ;}
Once again, "Merci beaucoup."

But is there an already tested function for that?