Awk and sort (of text files)

Michael Hennebry hennebry at web.cs.ndsu.nodak.edu
Thu Jul 2 16:36:33 UTC 2015


On Wed, 1 Jul 2015, jd1008 wrote:

> You misquote.
> I did not make the comment you attribute to me.

I think that I accidentally deleted a line.
What I should have written:

On Tue, 30 Jun 2015, jd1008 wrote:
> On 06/30/2015 04:48 PM, Cameron Simpson wrote:

>> Personally I tend to use a nontexty character for this kind of 
>> placeholder, such as ^G. Less risk of excountering that in the input 
>> text, and therefore less risk of accidentally mangling it.

Eliminate risk.
Replace all strings of e's with another string of e's, one e longer.
Replace the intra-paragraph newlines with one e each.
Sort.
Undo the previous replacements.
If, for some reason, one does not like e, use a vertical stroke.



The second ...wrote: had gone missing.
Had I kept the quoted-quoted article, I would have quoted it directly.
Usually I edit out the outer quote in such circumstances.
Not sure why I didn't this time.

-- 
Michael   hennebry at web.cs.ndsu.NoDak.edu
"SCSI is NOT magic. There are *fundamental technical
reasons* why it is necessary to sacrifice a young
goat to your SCSI chain now and then."   --   John Woods


More information about the users mailing list