.dotfiles/.config/zsh/functions/rn.zsh

3 lines
84 B
Bash

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