Unix and Linux Discussions Tagged with sum |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
5 |
75,103 |
Shell Programming and Scripting |
|
|
|
1 |
2,463 |
UNIX for Beginners Questions & Answers |
|
|
|
6 |
3,728 |
UNIX for Beginners Questions & Answers |
|
|
|
4 |
10,631 |
Shell Programming and Scripting |
|
|
|
8 |
26,479 |
Homework & Coursework Questions |
|
|
|
5 |
20,743 |
UNIX for Beginners Questions & Answers |
|
|
|
6 |
3,679 |
Shell Programming and Scripting |
|
|
|
4 |
2,744 |
Shell Programming and Scripting |
|
|
|
4 |
1,918 |
Shell Programming and Scripting |
|
|
|
1 |
4,933 |
Shell Programming and Scripting |
|
|
|
3 |
9,182 |
Shell Programming and Scripting |
|
|
|
10 |
8,071 |
Shell Programming and Scripting |
|
|
|
2 |
6,334 |
Shell Programming and Scripting |
|
|
|
2 |
3,380 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
5,425 |
UNIX for Advanced & Expert Users |
|
|
|
2 |
14,538 |
Shell Programming and Scripting |
|
|
|
2 |
5,810 |
Shell Programming and Scripting |
|
|
|
3 |
27,497 |
UNIX for Dummies Questions & Answers |
|
|
|
6 |
11,656 |
Shell Programming and Scripting |
|
|
|
8 |
23,928 |
Shell Programming and Scripting |
|
|
|
1 |
2,530 |
UNIX for Dummies Questions & Answers |
|
|
|
6 |
3,037 |
Shell Programming and Scripting |
|
|
|
8 |
16,993 |
Shell Programming and Scripting |
|
|
|
2 |
5,487 |
Programming |
|
|
|
4 |
3,556 |
Shell Programming and Scripting |
|
|
|
7 |
6,865 |
Shell Programming and Scripting |
|
|
|
6 |
3,094 |
Shell Programming and Scripting |
|
|
|
0 |
1,980 |
Complex Event Processing RSS News |
|
|
|
2 |
15,412 |
Shell Programming and Scripting |
|
|
|
4 |
35,417 |
Shell Programming and Scripting |
|
|
|
3 |
9,187 |
Shell Programming and Scripting |
|
|
|
1 |
2,608 |
Shell Programming and Scripting |
|
|
|
2 |
2,083 |
UNIX for Advanced & Expert Users |
|
|
|
11 |
4,377 |
Shell Programming and Scripting |
|
|
|
2 |
6,895 |
Shell Programming and Scripting |
|
|
|
1 |
8,852 |
HP-UX |
|
|
|
4 |
13,284 |
Shell Programming and Scripting |
|
|
|
2 |
5,396 |
UNIX for Advanced & Expert Users |
|
|
|
1 |
9,694 |
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)