From: Sergey Matveev Date: Fri, 11 Aug 2023 19:37:07 +0000 (+0300) Subject: Why the hell I still used SHA? X-Git-Url: http://www.git.stargrave.org/?p=dotfiles.git;a=commitdiff_plain;h=d72a6055428e399d710e99c689f8ff4067ae9ef5 Why the hell I still used SHA? --- diff --git a/bin/bin/mv-sha b/bin/bin/mv-hsh similarity index 70% rename from bin/bin/mv-sha rename to bin/bin/mv-hsh index bf5cc5c..fe7ee92 100755 --- a/bin/bin/mv-sha +++ b/bin/bin/mv-hsh @@ -2,5 +2,5 @@ [ $# -eq 0 ] && fs="$(find . -maxdepth 1 -type f)" || fs="$@" for f in $fs ; do - mv -v "$f" $(sha1 -q "$f").${f##*.} + mv -v "$f" $(b3sum < "$f").${f##*.} done