


MKSORT(8)                                               MKSORT(8)


NNAAMMEE
       mksort  -  sort  the  standard input, allowing arbitrarily
       long lines

SSYYNNOOPPSSIISS
       //uussrr//lliibb//mmaaiill//mmkkssoorrtt [ --ff ] [ _f_i_l_e ...  ]

DDEESSCCRRIIPPTTIIOONN
       _M_k_s_o_r_t takes lines as input, sorts them by the first field
       and  writes  them to the standard output.  The first field
       is delimited by whitespace or by the colon character  (:).
       The  lines  can  be  of  any length, as long as the entire
       input can be stored in memory.  With --ff the sort  is  per-
       formed  independent of case, so that the letter ``A'' com-
       pares equal to the letter ``a'' and ``a'' is  always  less
       than ``B.''

       If  no  input  files  are specified, the standard input is
       read.  In addition, if a filename of -- is given, the stan-
       dard input is inserted at that point.

       The  _m_k_s_o_r_t  program  can  be  used  in  combination  with
       _m_k_l_i_n_e(8) to produce sorted files  containing  arbitrarily
       large  aliases  or  paths  which  can  then  be  read by a
       _s_m_a_i_l(8) pathalias  router  or  aliasfile  director.   The
       router or director should be configured to use the _b_s_e_a_r_c_h
       file access protocol.  See _s_m_a_i_l(5) for  more  information
       on routers and directors.

EEXXAAMMPPLLEE
       As  an example of the use of _m_k_s_o_r_t with _m_k_l_i_n_e consider a
       file, _a_l_i_a_s_e_s, containing the following aliasing  informa-
       tion:

              Postmaster:       hustead               # Ted Hustead, jr.
              UUCP-Postmasters: tron, chongo          # namei contacts
                                yamato                # kremvax contact
              tron:             tron@namei.uucp (Ronald S. Karr)
              yamato:           yamato@kremvax.ussr.comm (Yamato T. Yankelovich)
              chongo:           chongo@eek.uts.amdahl.com (Landon Curt Noll)

       Given  this  file,  the command _m_k_l_i_n_e _a_l_i_a_s_e_s _| _m_k_s_o_r_t _-_f
       will yield:

              chongo:chongo@eek.uts.amdahl.com
              Postmaster:hustead
              tron:tron@namei.uucp
              UUCP-Postmasters:tron,chongo yamato
              yamato:yamato@kremvax.ussr.comm

SSEEEE AALLSSOO
       _m_k_l_i_n_e(8), _m_k_d_b_m(8), _s_m_a_i_l(5), _s_m_a_i_l(8), _p_a_t_h_a_l_i_a_s(8).





Local                    31 January 1988                        1





MKSORT(8)                                               MKSORT(8)


CCOOPPYYRRIIGGHHTT
       Copyright(C)1987, 1988 Ronald S. Karr and Landon Curt Noll
       Copyright(C)1992 Ronald S. Karr
       See  a  file COPYING, distributed with the source code, or
       type _s_m_a_i_l _-_b_c for distribution  rights  and  restrictions
       associated with this software.



















































Local                    31 January 1988                        2


