瀏覽代碼

Merge pull request #327 from igorshubovych/md5

md5: split basic example for simplicity, add example of md5 checksum for given string
Igor Shubovych 9 年之前
父節點
當前提交
cddacee9d1
共有 1 個文件被更改,包括 9 次插入2 次删除
  1. 9 2
      pages/osx/md5.md

+ 9 - 2
pages/osx/md5.md

@@ -2,12 +2,19 @@
 
 > Calculate MD5 cryptographic checksums
 
-- Calculate the MD5 checksum for file(s) or files in a directory, one checksum per file
+- Print MD5 checksum for a file
+
+`md5 {{filename}}`
+
+- Print MD5 checksum for each file in a list or directory
 
-`md5 {{filename1}}`
 `md5 {{filename1}} {{filename2}}`
 `md5 {{directory/\*}}`
 
 - Output only the md5 checksum (no filename)
 
 `md5 -q {{filename}}`
+
+- Print a checksum of the given string
+
+`md5 -s {{string}}`