pub-solar-os/profiles/develop/zsh/functions/chext
Timothy DeHerrera 7caae5b8bc
develop:zsh: new shell functions
* rnm: don't ever repeat yourself in the shell
* chext: easily change file extension
2020-01-05 18:36:18 -07:00

6 lines
76 B
Plaintext

[[ -z $3 ]] || return 1
file=$1
ext=$2
new="${file:r}.${ext}"
mv $file $new