]> Sergey Matveev's repositories - dotfiles.git/blob - bin/bin/mv-hsh
Have not used zshfe for years
[dotfiles.git] / bin / bin / mv-hsh
1 #!/bin/sh
2
3 [ $# -eq 0 ] && fs="$(find . -maxdepth 1 -type f)" || fs="$@"
4 for f in $fs ; do
5     mv -v "$f" $(b3sum < "$f").${f##*.}
6 done