feat: add rn command

This commit is contained in:
2021-04-26 00:53:32 +02:00
parent 88a4bb542b
commit 17bd44383c
2 changed files with 5 additions and 1 deletions

View File

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