summaryrefslogtreecommitdiffhomepage
path: root/src/prj/mmv/sha1sum-long-example.sh.html
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2023-08-15 14:57:32 +0200
committerThomas Voss <mail@thomasvoss.com> 2023-08-15 14:57:32 +0200
commitd5635e946e9df6f519ec8cf08cebfc35dbe6c788 (patch)
tree46893cffdf23a2b15f8b7839c69d5df2bcbb8bca /src/prj/mmv/sha1sum-long-example.sh.html
parentcfa35dcb2d332977e80a5811b6d42e9949bd4814 (diff)
Add a post on ‘mmv’
Diffstat (limited to 'src/prj/mmv/sha1sum-long-example.sh.html')
-rw-r--r--src/prj/mmv/sha1sum-long-example.sh.html11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/prj/mmv/sha1sum-long-example.sh.html b/src/prj/mmv/sha1sum-long-example.sh.html
new file mode 100644
index 0000000..ddbda86
--- /dev/null
+++ b/src/prj/mmv/sha1sum-long-example.sh.html
@@ -0,0 +1,11 @@
+$ <span class="sh-fn">touch</span> foo bar
+$ <span class="sh-fn">cat</span> &lt;&lt;<span class="sh-hd">EOF</span> &gt;hash-filename
+<span class="sh-hd">#!/bin/sh</span>
+
+<span class="sh-hd">sha1sum | awk '{ print \$1 }'</span>
+<span class="sh-hd">EOF</span>
+$ <span class="sh-fn">chmod</span> +x hash-filename
+$ <span class="sh-fn">ls</span> foo bar | <span class="sh-fn">mmv</span> -i ./hash-filename
+$ <span class="sh-fn">ls</span>
+e242ed3bffccdf271b7fbaf34ed72d089537b42f hash-filename
+f1d2d2f924e986ac86fdf7b36c94bcdf32beec15