>>>>> "Jozsi" == Jozsi Vadkan <jozsi.avad...@gmail.com> writes:

Jozsi> So from the input, i want to make an ascendant order, how many things
Jozsi> are under a "SOMETHING-XX"

So you just want paragraphs ordered by line count?

Something like this, untested:

perl -00 'print map $_->[0], sort { $a->[1] <=> $b->[1] } map [$_, tr/\n//], 
<>' <input >output

Keywords: Schwartzian Transform, paragraph mode.

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<mer...@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

Reply via email to