

            sort (1) --- sort ASCII-encoded records                  02/22/82


            _U_s_a_g_e

                 sort {-d | -r} { <pathname> }


            _D_e_s_c_r_i_p_t_i_o_n

                 'Sort'  is  a  rather straightforward program that sorts the
                 contents of the files named in its argument list and  writes
                 the  result  on its first standard output port.  By default,
                 lines are sorted in ascending order on the  basis  of  ASCII
                 collating  sequence, using the entire line as a key.  If the
                 "-d" option  is  specified,  dictionary  collating  sequence
                 (upper  and  lower  case  are  equivalent,  punctuation  and
                 special characters are ignored) is used.  If the "-r" option
                 is specified, lines are sorted in descending order.

                 If no pathname arguments are given, or if the  pathname  "-"
                 appears  as  an  argument,  standard  input  one is used for
                 input.  Thus, 'sort' may be used as a filter.

                 'Sort' uses a combination of 'quicksort' and  merge;  it  is
                 taken directly from _S_o_f_t_w_a_r_e _T_o_o_l_s.


            _E_x_a_m_p_l_e_s

                 lf -c | sort | cat -n
                 sort -d wordlist dictionary >new_dictionary
                 files .r$ | sort -r | print -n


            _F_i_l_e_s

                 =temp=/st$?* for sort temporary files


            _M_e_s_s_a_g_e_s

                 "<file>:  can't open" for unreadable files.
                 "<file>:  can't create" if temporary file can't be created.


            _S_e_e _A_l_s_o

                 _S_o_f_t_w_a_r_e _T_o_o_l_s












            sort (1)                      - 1 -                      sort (1)


