os/profiles/develop/zsh/functions/chext

6 lines
76 B
Plaintext
Raw Normal View History

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