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