Is there a perl module that automatically parse shell output and sort the lines in a human readable manner? I capture the output into a file, but it looks like
M8.93kb 3.6 275 985k +3kb 10 195991kB 253kb 60.3 155[10;52 +H43kB 23.6kb 14.4937kB 47.0kb 10.2kb 127 71.11.11.18<=> 111.121.121.121619kB 1.13Mb 495 +kb 124kb 0
On the screen I have the lines looking like
69.11.11.11 + <=> 222.11.12.13 + 31.1kB 23.5kb 31.1kb 31.1kb
This is coming from iftop command.

In reply to perl sorting shell output by mrc

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.