mirror of https://github.com/CrimsonTome/tldr.git
shasum: fix file names
parent
7cffccc950
commit
df745b0cdc
|
@ -4,28 +4,28 @@
|
||||||
|
|
||||||
- Calculate the SHA1 checksum for a file:
|
- Calculate the SHA1 checksum for a file:
|
||||||
|
|
||||||
`shasum {{filename}}`
|
`shasum {{path/to/file}}`
|
||||||
|
|
||||||
- Calculate the SHA256 checksum for a file:
|
- Calculate the SHA256 checksum for a file:
|
||||||
|
|
||||||
`shasum --algorithm 256 {{filename}}`
|
`shasum --algorithm 256 {{path/to/file}}`
|
||||||
|
|
||||||
- Calculate the SHA512 checksum for multiple files:
|
- Calculate the SHA512 checksum for multiple files:
|
||||||
|
|
||||||
`shasum --algorithm 512 {{filename1}} {{filename2}}`
|
`shasum --algorithm 512 {{path/to/file1}} {{path/to/file2}}`
|
||||||
|
|
||||||
- Calculate and save the list of SHA256 checksums to a file:
|
- Calculate and save the list of SHA256 checksums to a file:
|
||||||
|
|
||||||
`shasum --algorithm 256 {{filename1}} {{filename2}} > {{filename.sha256}}`
|
`shasum --algorithm 256 {{path/to/file1}} {{path/to/file2}} > {{path/to/file.sha256}}`
|
||||||
|
|
||||||
- Check a file with a list of sums against the directory's files:
|
- Check a file with a list of sums against the directory's files:
|
||||||
|
|
||||||
`shasum --check {{list_file}}`
|
`shasum --check {{path/to/file}}`
|
||||||
|
|
||||||
- Check a list of sums and only show a message for files for which verification fails:
|
- Check a list of sums and only show a message for files for which verification fails:
|
||||||
|
|
||||||
`shasum --check --quiet {{list_file}}`
|
`shasum --check --quiet {{path/to/file}}`
|
||||||
|
|
||||||
- Calculate the SHA1 checksum from stdin:
|
- Calculate the SHA1 checksum from stdin:
|
||||||
|
|
||||||
`{{somecommand}} | shasum`
|
`{{some_command}} | shasum`
|
||||||
|
|
Loading…
Reference in New Issue