用 bash 脚本计算当前文件夹内所有 .docx 文件的 sha1 值: Revision history

Jump to navigation Jump to search

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

29 September 2025

  • curprev 10:4210:42, 29 September 2025Mwroot talk contribs 1,500 bytes +1,500 Created page with "保存这段代码为 calc_sha1_input.sh,再<code>./calc_sha1_input.sh 23333</code>运行,就会计算出 calc_sha1_input.sh 所在文件夹内所有 .docx 文件的 sha1 值,并输出结果为 23333.txt。calc_sha1_input.sh 中的 input 是提示你,这段脚本需要输入一个参数,用以指定结果的文件名前缀。这对于当别人给你发了两个重复文件看着大差不差,但又不确定是否重复时很有用,只需要分别计算 sha1..."