Add EXAMLES covering -c, -s and -r
|109 ↗||(On Diff #73130)|
I'd swap this example with the one above. That way, it shows a simple example first without the combination of any other utility (i.e. echo) and then in the next example, the combination of the two.
|128 ↗||(On Diff #73130)|
s/compare to and/compare with/
|99 ↗||(On Diff #73261)|
|105 ↗||(On Diff #73261)|
I think I'd replace "\n" with "a newline character". It's up to you though.
|111 ↗||(On Diff #73261)|
checksum or checksums? I am not sure.
|118 ↗||(On Diff #73261)|
Also, I'd probably drop "file".
|122 ↗||(On Diff #73261)|
|132 ↗||(On Diff #73261)|
I'd wrap randomstring with Dq.
Also, how about:
Same as above but comparing the digest against an invalid string .Pq Dq randomstring , which results in a failure.
or something along those lines.
|135 ↗||(On Diff #73261)|
The digest file is not used so maybe it could be removed from this example?
Also, the example should be on a single line, right? Or at least have a \ at the end of the first line.
Address comments made by 0mp:
- Use capitalization the name of the checksum algorithm.
- Replace "\n" with "the newline character".
- Use "the digest" instead of "digest". It is used in this form in the man page before.
- s/validate/validate it/
- Rephrasing where necessary
- Remove superfluous command with redirection since the example doesn't need it.