Unix and Linux Discussions Tagged with checksum |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
2 |
12,735 |
Programming |
|
|
|
4 |
1,955 |
UNIX for Beginners Questions & Answers |
|
|
|
0 |
3,027 |
Red Hat |
|
|
|
5 |
15,010 |
Shell Programming and Scripting |
|
|
|
34 |
10,160 |
Shell Programming and Scripting |
|
|
|
3 |
2,293 |
Shell Programming and Scripting |
|
|
|
2 |
14,537 |
Shell Programming and Scripting |
|
|
|
2 |
9,405 |
Solaris |
|
|
|
4 |
2,566 |
Shell Programming and Scripting |
|
|
|
7 |
6,366 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
6,585 |
Shell Programming and Scripting |
|
|
|
1 |
2,616 |
UNIX for Dummies Questions & Answers |
|
|
|
0 |
798 |
Software Releases - RSS News |
|
|
|
5 |
29,447 |
Programming |
|
|
|
0 |
1,183 |
Software Releases - RSS News |
|
|
|
1 |
2,254 |
UNIX for Advanced & Expert Users |
|
|
|
4 |
2,594 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
9,693 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
5,152 |
IP Networking |
|
|
|
4 |
5,731 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
5,005 |
UNIX for Dummies Questions & Answers |
sum(n) sum sum(n)
NAME
sum - calculate a sum(1) compatible checksum
SYNOPSIS
package require Tcl 8.2
package require sum ?1.0?
::crc::sum ?-format format? message
::crc::sum ?-format format? -filename file
DESCRIPTION
This package provides a Tcl-only implementation of the sum(1) command which calculates a 16 bit checksum value from the input data. The
BSD sum algorithm is used by default but the SysV algorithm is also available.
COMMANDS
::crc::sum ?-format format? message
::crc::sum ?-format format? -filename file
The command takes string data or a file name and returns a checksum value calculated using the sum(1) algorithm. The result is for-
matted using the format(n) specifier provided or as an unsigned integer (%u) by default.
OPTIONS
-filename name
Return a checksum for the file contents instead of for parameter data.
-format string
Return the checksum using an alternative format template.
EXAMPLES
% crc::sum "Hello, World!"
37287
% crc::sum -format 0x%X "Hello, World!"
0x91A7
% crc::sum -file sum.tcl
13392
SEE ALSO
sum(1), cksum(n), crc32(n)
AUTHORS
Pat Thoyts
KEYWORDS
sum, cksum, checksum, crc, crc32, cyclic redundancy check, data integrity, security
crc 1.0 sum(n)