SSUM(1)

NAME
ssum - sum and count bytes for each revision in an SCCS file

SYNOPSIS
ssum [-] [files...]

DESCRIPTION
Ssum calculates and displays a 16-bit checksum, number of bytes, SCCS revision number, and SCCS file name for each revision in the SCCS file for every file name it is given. The checksum and byte count for a particular revision match those given by:

	/usr/ucb/sccs get -p -k -rrev.lev.br.seq file_name > /tmp/file
	/bin/sum /tmp/file	# same check sum
	/bin/ls -l /tmp/file	# same byte count

It is typically used to find identical SCCS deltas in one or more SCCS files. An argument of '-' will cause ssum to take standard input as a list of file names.

SCCS FILE NAME GENERATION
Ssum processes each path name to generate valid SCCS file names removing "SCCS", "s." and redundant ".", "..", or "//"'s. The first file name generated is directory_part/SCCS/s.file_name_part, the second name is directory_part/s.file_name_part.

SEE ALSO
sccs(1), get(1), sum(1), sccsfile(5), smerge(1)

DIAGNOSTICS

"No path specified" - you must supply at least one file name.

"Warning: line count for file_name rev revision, expected line_count, counted line_count." - This error generally means that the line count in the SCCS header is wrong for a particular version but it could indicate a bug in ssum. The probable reason for an incorrect line count in the SCCS header is that someone edited the SCCS file directly and then used admin -z file_name to satisfy SCCS.

Other error messages are self explanatory or indicate a bad SCCS file.

EXIT STATUS
Ssum normally exits with a status of 0. Whenever ssum cannot successfully process a file, the exit code is equal to errno or 255.