Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ sum(1) — AIX PS/2 1.2.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

wc



SUM(1,C)                    AIX Commands Reference                     SUM(1,C)



-------------------------------------------------------------------------------
sum



PURPOSE

Displays the checksum and block count of a file.

SYNTAX


       +------+
sum ---|+----+|-- file --|
       +| -r |+^        |
        | -o | +--------+
        +----+


DESCRIPTION

The sum command reads file and calculates a 16-bit checksum and the number of
blocks (in units of 512 bytes) in the file (or in standard input if no files
are specified).  The checksum and number of blocks are written to standard
output.  When you specify more than one file, sum also displays the name of
each file.  The sum command is generally used to determine if a file that has
been copied or communicated over transmission lines is an exact copy of the
original.

FLAGS

-r Compute byte-by-byte checksum.  This is the default action.

-o Compute short-by-short checksum.

EXAMPLE

To display the checksum of, and the number of blocks in "datafile":

  sum  -r datafile

If the checksum of "datafile" is "1605" and if the file contains "3" blocks,
sum displays:

  1605     3

RELATED INFORMATION

See the following command:  "wc."






Processed November 8, 1990         SUM(1,C)                                   1



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