sum man page on HP-UX

Printed from http://www.polarhome.com/service/man/?qf=sum&af=0&tf=2&of=HP-UX

sum(1)									sum(1)

NAME
       sum - print checksum and block or byte count of file(s)

SYNOPSIS
       [file ...]

   Remarks
       is  obsolescent	and  should  not  be used in new applications that are
       intended to be portable between systems.	 Use instead (see cksum(1)).

DESCRIPTION
       calculates and prints to standard output	 a  checksum  for  each	 named
       file,  and also prints the size of the file in 512 byte blocks, rounded
       up.

       The default algorithm is a 16-bit sum of the bytes in which overflow is
       ignored.	 Alternate algorithms can be selected with the and options.

       Standard input is used if no file names are given.

       is  typically  used to verify data integrity when copying files between
       systems.

   Options
       recognizes the following options:

	      Use an alternate algorithm in which  the	16-bit	sum  is	 right
	      rotated
			with each byte in computing the checksum.

	      Use the 32-bit cyclical redundancy check (CRC) algorithm used by

RETURN VALUE
       returns the following values upon completion:

	      All files were processed successfully.

	      One  or  more  files  could  not	be  read  or  some other error
	      occurred.

       If an  inaccessible  file  is  encountered,  continues  processing  any
       remaining files, but the final exit status is affected.

DIAGNOSTICS
       Read  error  conditions	are indistinguishable from end of file on most
       devices; check the block or byte count.

WARNINGS
       This command is likely to be withdrawn from X/Open standards.  Applica‐
       tions  using this command might not be portable to other vendors' plat‐
       forms. The usage of cksum(1) is recommended.

SEE ALSO
       cksum(1), wc(1).

STANDARDS CONFORMANCE
									sum(1)
[top]

List of man pages available for HP-UX

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net