To easily use the hashes later in sha256sum -c, I only need to remove the size information, for instance with sed: 7z h -scrcsha256 mydir/* | sed --regexp-extended 's, +[0-9]+ +, ,g' > mydir.sha256sum ; sha256sum -c mydir.sha256sum (tested with p7zip Version 15.09 beta).
Is there a way to use the -scrc parameter also in "7z a"? I tried 7z a -scrcsha1 but 7z l -slt still output CRC only, like
I'm not getting any error, yet I'm not getting the results I expect either. What I'm doing wrong and what's the right syntax. - Thank you!
-scrcsha256
you can read help about h command:
Some hints about switches:
-m sends setting to 7z.dll (archive handlers)
-s sets setting in 7z.exe.
Last edit: Igor Pavlov 2014-12-18
+1 Thank you!
And thanks Sami for your blog post where I found about the feature: http://www.sami-lehtinen.net/blog/using-7-zip-hashing-to-compare-directories-and-files
Also useful: http://7zip.bugaco.com/7zip/7zip_15_09/MANUAL/cmdline/commands/hash.htm
To easily use the hashes later in
sha256sum -c
, I only need to remove the size information, for instance with sed:7z h -scrcsha256 mydir/* | sed --regexp-extended 's, +[0-9]+ +, ,g' > mydir.sha256sum ; sha256sum -c mydir.sha256sum
(tested with p7zip Version 15.09 beta).Is there a way to use the -scrc parameter also in "7z a"? I tried
7z a -scrcsha1
but7z l -slt
still output CRC only, likeLast edit: Nemo 2015-12-18
My god, I love this project.