meowsum.git

ref: master

./meowsum.1.scd


meowsum(1)

# NAME

meowsum — print or check Meow hash checksums

# SYNOPSIS

meowsum -h

meowsum [-ceq] FILE...

meowsum [-s size] FILE...

# DESCRIPTION

The meowsum utility calculates and prints or verifies Meow hash checksums.
The output format is consistent with POSIX cksum; meowsum prints the checksum,
number of bytes, and file path to standard output.

When FILE is -, meowsum reads standard input.
Checksums calculated from standard input are skipped when verifying.

# OPTIONS

\-h           show this help and exit++
\-c           read sums from the FILEs and check them++
\-s size      set hash size; size can be 32, 64, 128 bits;++
	        the default is 128

The following options are useful only when verifying checksums:++
\-q           only return status; do not print OK, ERH, ERS, ERM++
\-e           fail for missing files

# OUTPUT

When calculating checksums, for each FILE one line is printed to standard
output:
```
CHECKSUM SIZE FILE
```
where CHECKSUM is hexadecimal digest of calculated checksum, and SIZE is number
of bytes in the file.

When verifying checksums, errors are printed to stderr, and, unless there has
been and error, for each line in each FILE one line is printed to standard
output:
```
STATUS FILE
```
where STATUS is:
- OK - if checksum and size are correct
- ERM - if file is missing
- ERH - if checksum is not correct
- ERS - if checksum is correct but size is not

# AUTHORS

Maintained by Adam Pioterek . Up-to-date sources can be found at
https://git.apiote.tk/meowsum.git and bugs/patches can be submitted by email to
git+meowsum@apiote.tk.

# COPYRIGHT

Copyright © 2021 Adam Pioterek. License GPLv3+: GNU GPL version 3 or later
.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

# SEE ALSO

Source code of Meow hash