Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ sortm(1m) — AIX PS/2 1.2.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

mh-profile



SORTM(1m,C)                 AIX Commands Reference                  SORTM(1m,C)



-------------------------------------------------------------------------------
sortm



PURPOSE

Sorts messages.

SYNTAX


         +-----------+   +-------- all ---------------------------------+
sortm ---|           |---| +----------- all --------------------------+ |--->
         +- +folder -+   +-|   +------------ sequence ------------+   |-+
                           +---|  one of                          |---+
                             ^ | +-------+   +------------------+ | |
                             | +-| num   |---|      one of      |-+ |
                             |   | first |   |1+--------------+ |   |
                             |   | prev  |   +-| :num   -prev |-+   |
                             |   | cur   |     | :+num  -cur  |     |
                             |   | .     |     | :-num  -.    |     |
                             |   | next  |     | -num   -next |     |
                             |   | last  |     | -first -last |     |
                             |   +-------+     +--------------+     |
                             +--------------------------------------+

    +- -datefield date --+   +----------------+
>---|                    |---|     one of     |---|
    +- -datefield field -+   | +------------+ |
                             +-| -verbose   |-+
                               | -noverbose |
                               +------------+

sortm --- -help ---|


-----------------
1 Do not put a blank between these items.


Warning: See restrictions, Chapter 18, AIX Programming Tools and Interfaces.

DESCRIPTION

The sortm command is used to sort messages.  The sortm command is part of the
Message Handling (MH) package and can be used with MH and AIX commands.

The sortm command sorts the messages according to the date in a header field.
By default, sortm parses the Date:, but you can use the -datefield flag to
specify another field.  sortm numbers the sorted messages consecutively
beginning with 1 (one).  Messages that are in the folder, but not specified to



Processed November 8, 1990        SORTM(1m,C)                                 1





SORTM(1m,C)                 AIX Commands Reference                  SORTM(1m,C)



be sorted, are placed after the sorted messages.  sortm displays a message if
it cannot parse a date field.

FLAGS

-datefield field  Specifies the header field to be used in the sort.  The
                  default field is Date:.

+folder msgs      Specifies the messages to be sorted.  You can use the
                  following message references when specifying msgs:

                  num                    first                   prev
                  cur                    .                       next
                  last                   all                     sequence

                  The default is all messages in the current folder.  If you
                  specify a folder, it becomes the current folder.  The current
                  message remains the current message, even if it moves during
                  the sort.

-help             Displays help information for the command.

-noverbose        Does not display information during the sort.  This flag is
                  the default.

-verbose          Displays information during the sort.  This information
                  allows you to monitor the steps involved.

PROFILE ENTRIES

Current-Folder:     Sets your default current folder.
Path:               Specifies your user_mh_directory.

FILES

$HOME/.mh_profile   The MH user profile.

RELATED INFORMATION

See the mh-profile file in AIX Operating System Technical Reference.

See "Overview of the Message Handling Package" in Managing the AIX Operating
System.












Processed November 8, 1990        SORTM(1m,C)                                 2



Typewritten Software • bear@typewritten.org • Edmonds, WA 98026