msort - utility for sorting records in complex ways

Property Value
Distribution Ubuntu 12.04 LTS (Precise Pangolin)
Repository Ubuntu Universe amd64
Package name msort
Package version 8.52
Package release 1.3build1
Package architecture amd64
Package type deb
Installed size 386 B
Download size 270.31 KB
Official Mirror
msort is a program for sorting files in sophisticated ways. It was originally
developed for alphabetizing dictionaries of "exotic" languages, for which it
has been extensively used, but is useful for many other purposes. msort differs
from typical sort utilities in providing greater flexibility in parsing the
input into records and identifying key fields and greater control over the
sort order. Its main distinctive features are:
o Msort can be used as a command-line program or via a graphical user
interface that is helpful not only to those who find a complicated command
line difficult to deal with but also to those unfamiliar with the finer
points of sorting.
o Records need not be single lines of text but may be delimited in a number
of ways.
o Key fields may be selected by position in the record (counting from the
beginning or the end), by character ranges (e.g. the key consists of the
fourth through eighth characters), or by matching a regular expression to
a tag.
o For each key an arbitrary sort order may be specified. Msort also
understands locales.
o For each key an effectively unlimited number of multigraphs (sequences
of characters to be treated as a single unit for purposes of sorting,
"collating elements" in Unicode parlance) of effectively unlimited length
may be defined.
o In addition to the usual lexicographic and numerical comparisons, msort
supports hybrid lexicographic-numeric comparison (for things like filenames
and section headings, so that, e.g., 2a will precede 10b), random
comparison, and ordering by angle, date, time, month name, domain name,
email address, ISO8601 date-time, and string length.
o Numbers may be in just about any known number system, e.g. Chinese or
o For each key a distinct set of characters may be excluded from
consideration when sorting in any combination of initial, final, and
medial position in the key field.
o For each key a distinct set of regular expression substitutions may be
defined. These provide the means to make names like McCarthy sort before
MacCawley, as if McCarthy were spelled MacCarthy as well as to handle the
rare cases in which a single character is treated for purposes of sorting
as a sequence, such as German "eszet" sign, which is traditionally sorted
as if it were ss.
o Lexicographic keys may be reversed, allowing the construction of reverse
o Any or all keys may be optional. For optional keys, the user may specify
how records missing the key field should compare to records in which the
key field is present.
o A choice of sorting algorithms with different properties is provided.
msort understands UTF-8 Unicode. Unicode may be used anywhere that text is
entered: in the text to be sorted, in sort order and exclusion definitions,
as a field or record separator, or as a field tag. Full Unicode
case-folding is available.


Package Version Architecture Repository
msort_8.52-1.3build1_i386.deb 8.52 i386 Ubuntu Universe
msort - - -


Name Value
libc6 >= 2.7
libicu48 >= 4.8-1
libtre5 -
libuninum5 -


Type URL
Binary Package msort_8.52-1.3build1_amd64.deb
Source Package msort

Install Howto

  1. Update the package index:
    # sudo apt-get update
  2. Install msort deb package:
    # sudo apt-get install msort



See Also

Package Description
msp430-libc_20110612-2_amd64.deb Standard C library for TI MSP430 development
msp430mcu_20110613-3_all.deb Spec files, headers and linker scripts for TI's MSP430 targets
mspdebug_0.18-1_amd64.deb debugging tool for MSP430 microcontrollers
msrtool_0.0+r4091-1_amd64.deb Dump chipset-specific MSR contents
mssh_1.2-1.1ubuntu1_amd64.deb tool to administrate multiple servers at once
mstflint_1.4-OFED-1.4.2-1_amd64.deb Mellanox firmware burning application
msva-perl_0.8-2_all.deb Cryptographic identity validation agent (Perl implementation)
mswatch_1.2.0-2_amd64.deb watch mailstores for changes and initiate mailbox syncs - client tools
mt-st_1.1-4ubuntu1_amd64.deb Linux SCSI tape driver aware magnetic tape control (aka mt)
mtasc_1.14-2build2_amd64.deb ActionScript 2 to Flash (SWF) compiler
mtd-utils_1.4.4-1_amd64.deb Memory Technology Device Utilities
mtdev-tools_1.1.0-2ubuntu1_amd64.deb Multitouch Protocol Translation Library - test tools
mtink-doc_1.0.16-3_all.deb Documentation for mtink
mtink_1.0.16-3_amd64.deb Status monitor tool for Epson inkjet printers
mtkbabel_0.8.3.1-1_all.deb Tool for managing i-Blue 747 and compatible GPS data loggers