blob: ddbda86906d14be7b675c6b429f7d3b42435eac0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
$ <span class="sh-fn">touch</span> foo bar
$ <span class="sh-fn">cat</span> <<<span class="sh-hd">EOF</span> >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
|