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

3 lines
84 B
Bash
Raw Permalink Normal View History

2021-04-26 00:53:32 +02:00
function rn(){
find . -name "*.$1" -exec sh -c 'mv "$0" "${0%.'$1'}.'$2'"' {} \;
}