From d5635e946e9df6f519ec8cf08cebfc35dbe6c788 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Tue, 15 Aug 2023 14:57:32 +0200 Subject: Add a post on ‘mmv’ MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/prj/mmv/sha1sum-long-example.sh.html | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 src/prj/mmv/sha1sum-long-example.sh.html (limited to 'src/prj/mmv/sha1sum-long-example.sh.html') 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 @@ +$ touch foo bar +$ cat <<EOF >hash-filename +#!/bin/sh + +sha1sum | awk '{ print \$1 }' +EOF +$ chmod +x hash-filename +$ ls foo bar | mmv -i ./hash-filename +$ ls +e242ed3bffccdf271b7fbaf34ed72d089537b42f hash-filename +f1d2d2f924e986ac86fdf7b36c94bcdf32beec15 -- cgit v1.2.3