.dotfiles/configs/zsh/functions/rn.zsh
2021-04-26 00:53:32 +02:00

3 lines
84 B
Bash

function rn(){
find . -name "*.$1" -exec sh -c 'mv "$0" "${0%.'$1'}.'$2'"' {} \;
}