$ <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