7caae5b8bc
* rnm: don't ever repeat yourself in the shell * chext: easily change file extension
6 lines
76 B
Plaintext
6 lines
76 B
Plaintext
[[ -z $3 ]] || return 1
|
|
file=$1
|
|
ext=$2
|
|
new="${file:r}.${ext}"
|
|
mv $file $new
|