🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.programmer
Article #101

Sorting articles of variable number of lines

#101
From: Norbert EBEL
Date: Thu, 23 Jul 1992 15:29
21 lines
1287 bytes
Hi Netters,

If I want to sort text files containing articles of variable length
according to a fixed criteria I thought of the following solution:

1) make a very long line with an article putting a special sequence in 
   order to remember the end of line, using tr, awk or sed
2) sorting according the given criteria using sort
3) rechanging the special sequence to nl
A problem is most utilities allows for limmited length of line

Is there any better solution or possibly a utility for that.

I found this problem when I saved mails in the wrong incoming order
in a folder. For that special pourpose there is special option on Sun in 
the mail utility but I can imagine other situations where a similar 
problem will occur.

Please answer by e-mail. Thanks

Norbert Ebel
Technical Details
Message-ID: <4348@disuns2.epfl.ch>
Path: arc1-ca.pugleaf.net!sparky!uunet!haven.umd.edu!darwin.sura.net!Sirius.dfn.de!chx400!sicsun!disuns2!lsesun3!ebel

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!haven.umd.edu!darwin.sura.net!Sirius.dfn.de!chx400!sicsun!disuns2!lsesun3!ebel
From: ebel@lsesun3.epfl.ch (Norbert EBEL)
Newsgroups: comp.unix.programmer
Subject: Sorting articles of variable number of lines
Keywords: Sorting text Files
Message-ID: <4348@disuns2.epfl.ch>
Date: 23 Jul 92 15:29:28 GMT
Sender: news@disuns2.epfl.ch
Organization: Laboratoire de Systemes d'Exploitation - E P F Lausanne, Switzerland
Lines: 21
Nntp-Posting-Host: lsesun5.epfl.ch