Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #193344

Re: Does bash have a tool ?

From Richard Owlett <rowlett@cloud85.net>
Newsgroups linux.debian.user
Subject Re: Does bash have a tool ?
Date 2018-03-05 04:20 +0100
Message-ID <vpOPn-5pm-1@gated-at.bofh.it> (permalink)
References <vpDKh-6pa-1@gated-at.bofh.it> <vpEmZ-6Vm-3@gated-at.bofh.it> <vpEGm-72R-5@gated-at.bofh.it> <vpGoO-8gt-3@gated-at.bofh.it> <vpMDT-3KM-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 03/04/2018 06:51 PM, David Wright wrote:
> On Sun 04 Mar 2018 at 12:14:36 (-0600), John Hasler wrote:
>> Richard Owlett writes:
>>> I don't have any background in Perl and the last formal course in
>>> programming was in the 60's.
>>
>> Perl is just bash, ed, sed, awk, grep, etc all smushed together into
>> one.
>>
>>> However awk and/or sed may be what I'm looking for and are well
>>> documented.
>>
>> It's exactly what those tools are for.  Don't forget the rest of the
>> toolkit.
> 
> There's a case here for using specialist tools as we know we're
> dealing with emails.
> 
> I'd start by using a client like mutt to sort out which messages to
> process. The easiest way of doing this is¹ to copy the outbox, open
> the copy and sort the index by Subject. (o s in mutt.)
> 
> Because Re: is normally ignored in mutt when sorting thus, type
> :set reply_regexp=""
> to temporarily defeat that. As a result, all the Re: messages now
> sort together.
> 
> On the first Re: in the list, press and hold down the <d> key to
> mark them as deleted. $ will now purge them. Quit.
> 
> Now I would run formail on the shrunken mailbox using the -s option
> to run itself recursively, thus:
> 
> $ formail -s formail -I "" < path/to/shrunken-mailbox > file-of-concatenated-bodies
> 
> The first formail splits the mailbox and pipes each message to the
> second one which strips the headers, pipes it back to the first which
> pipes it into the output file.
> 
> ¹the process may differ from client to client.
> 
> Cheers,
> David.
> 
> 


IOW I should become educated

IOW "I should think"
I did not recognize appropriate direction

Back to linux.debian.user | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Does bash have a tool ? Richard Owlett <rowlett@cloud85.net> - 2018-03-04 16:30 +0100
  Re: Does bash have a tool ? rhkramer@gmail.com - 2018-03-04 17:10 +0100
    Re: Does bash have a tool ? Richard Owlett <rowlett@cloud85.net> - 2018-03-04 17:30 +0100
      Re: Does bash have a tool ? rhkramer@gmail.com - 2018-03-04 18:10 +0100
        Re: Does bash have a tool ? Richard Owlett <rowlett@cloud85.net> - 2018-03-04 20:10 +0100
          Re: Does bash have a tool ? Richard Hector <richard@walnut.gen.nz> - 2018-03-05 03:20 +0100
            Re: Does bash have a tool ? Richard Owlett <rowlett@cloud85.net> - 2018-03-05 04:10 +0100
              Re: Does bash have a tool ? John Hasler <jhasler@newsguy.com> - 2018-03-05 04:30 +0100
                Re: Does bash have a tool ? Richard Owlett <rowlett@cloud85.net> - 2018-03-05 10:20 +0100
                Re: Does bash have a tool ? John Hasler <jhasler@newsguy.com> - 2018-03-05 15:30 +0100
                Re: Does bash have a tool ? Curt <curty@free.fr> - 2018-03-05 16:20 +0100
                Re: Does bash have a tool ? John Hasler <jhasler@newsguy.com> - 2018-03-05 18:10 +0100
            Re: Does bash have a tool ? rhkramer@gmail.com - 2018-03-05 05:40 +0100
      Re: Does bash have a tool ? John Hasler <jhasler@newsguy.com> - 2018-03-04 19:20 +0100
        Re: Does bash have a tool ? David Wright <deblis@lionunicorn.co.uk> - 2018-03-05 02:00 +0100
          Re: Does bash have a tool ? Richard Owlett <rowlett@cloud85.net> - 2018-03-05 04:20 +0100
      Re: Does bash have a tool ? Erik Christiansen <dvalin@internode.on.net> - 2018-03-05 06:50 +0100
        Re: Does bash have a tool ? Richard Owlett <rowlett@cloud85.net> - 2018-03-05 10:10 +0100
          Re: Does bash have a tool ? Erik Christiansen <dvalin@internode.on.net> - 2018-03-05 11:20 +0100
  Re: Does bash have a tool ? Curt <curty@free.fr> - 2018-03-04 18:30 +0100
    Re: Does bash have a tool ? Richard Owlett <rowlett@cloud85.net> - 2018-03-05 11:30 +0100
      A recomended guide to vim - was {Re: Does bash have a tool ?} Richard Owlett <rowlett@cloud85.net> - 2018-03-07 16:40 +0100
        Re: A recomended guide to vim - was {Re: Does bash have a tool ?} Curt <curty@free.fr> - 2018-03-07 22:10 +0100
          Re: A recomended guide to vim - was {Re: Does bash have a tool ?} Richard Owlett <rowlett@cloud85.net> - 2018-03-09 13:40 +0100
        Re: A recomended guide to vim - was {Re: Does bash have a tool ?} Cousin Stanley <cousinstanley@gmail.com> - 2018-03-09 14:20 +0100
  An answer - was [Re: Does bash have a tool ?] Richard Owlett <rowlett@cloud85.net> - 2018-03-05 01:00 +0100
    Re: An answer - was [Re: Does bash have a tool ?] Forest Dean Feighner <forest.feighner@gmail.com> - 2018-03-05 02:00 +0100
  Re: Does bash have a tool ? Gregory Seidman <gsslist+debian@anthropohedron.net> - 2018-03-05 22:50 +0100

csiph-web