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