meowsum.1.scd 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. meowsum(1)
  2. # NAME
  3. meowsum — print or check Meow hash checksums
  4. # SYNOPSIS
  5. meowsum -h
  6. meowsum [-ceq] FILE...
  7. meowsum [-s size] FILE...
  8. # DESCRIPTION
  9. The meowsum utility calculates and prints or verifies Meow hash checksums.
  10. The output format is consistent with POSIX cksum; meowsum prints the checksum,
  11. number of bytes, and file path to standard output.
  12. When FILE is -, meowsum reads standard input.
  13. Checksums calculated from standard input are skipped when verifying.
  14. # OPTIONS
  15. \-h show this help and exit++
  16. \-c read sums from the FILEs and check them++
  17. \-s size set hash size; size can be 32, 64, 128 bits;++
  18. the default is 128
  19. The following options are useful only when verifying checksums:++
  20. \-q only return status; do not print OK, ERH, ERS, ERM++
  21. \-e fail for missing files
  22. # OUTPUT
  23. When calculating checksums, for each FILE one line is printed to standard
  24. output:
  25. ```
  26. CHECKSUM SIZE FILE
  27. ```
  28. where CHECKSUM is hexadecimal digest of calculated checksum, and SIZE is number
  29. of bytes in the file.
  30. When verifying checksums, errors are printed to stderr, and, unless there has
  31. been and error, for each line in each FILE one line is printed to standard
  32. output:
  33. ```
  34. STATUS FILE
  35. ```
  36. where STATUS is:
  37. - OK - if checksum and size are correct
  38. - ERM - if file is missing
  39. - ERH - if checksum is not correct
  40. - ERS - if checksum is correct but size is not
  41. # AUTHORS
  42. Maintained by Adam Pioterek <me@apiote.tk>. Up-to-date sources can be found at
  43. https://git.apiote.tk/meowsum.git and bugs/patches can be submitted by email to
  44. git+meowsum@apiote.tk.
  45. # COPYRIGHT
  46. Copyright © 2021 Adam Pioterek. License GPLv3+: GNU GPL version 3 or later
  47. <https://gnu.org/licenses/gpl.html>.
  48. This is free software: you are free to change and redistribute it.
  49. There is NO WARRANTY, to the extent permitted by law.
  50. # SEE ALSO
  51. Source code of Meow hash <https://github.com/cmuratori/meow_hash>