|
|
1.1 ! root 1: .TH SUM 1 ! 2: .CT 1 files ! 3: .SH NAME ! 4: sum, treesum \- sum and count blocks in a file ! 5: .SH SYNOPSIS ! 6: .B sum ! 7: [ ! 8: .B -5ri ! 9: ] ! 10: [ ! 11: .I file ... ! 12: ] ! 13: .PP ! 14: .B treesum ! 15: [ ! 16: .I file ... ! 17: ] ! 18: .SH DESCRIPTION ! 19: By default, ! 20: .I sum ! 21: calculates and prints a 32-bit checksum, ! 22: a byte count ! 23: and the name of ! 24: each ! 25: .IR file . ! 26: The checksum is also a function of the input length. ! 27: If no files are given, ! 28: the standard input is ! 29: summed. ! 30: Other summing algorithms are available. ! 31: The options are ! 32: .TP ! 33: .B -i ! 34: Read file names from standard input. ! 35: .TP ! 36: .B -r ! 37: Sum with the algorithm of System V's ! 38: .B "sum -r" ! 39: and print the length (in 1K blocks) of the input. ! 40: .TP ! 41: .B -5 ! 42: Sum with System V's default algorithm ! 43: and print the length (in 512-byte blocks) of the input. ! 44: .PP ! 45: .I Sum ! 46: is typically used to look for bad spots, ! 47: to validate a file communicated over ! 48: some transmission line or ! 49: as a quick way to determine if two files might be the same. ! 50: .PP ! 51: .I Treesum ! 52: is similar to ! 53: .BR "sum -r" , ! 54: except that if ! 55: .I file ! 56: is a directory, then ! 57: .I treesum ! 58: recursively descends it, summing all non-directories encountered. ! 59: If no files are given, ! 60: .IR treesum ! 61: recursively sums the current directory. ! 62: .SH "SEE ALSO" ! 63: .IR wc (1)
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.