7caae5b8bc
* rnm: don't ever repeat yourself in the shell * chext: easily change file extension
4 lines
68 B
Text
4 lines
68 B
Text
[[ -z $3 ]] || return 1
|
|
head=${1:h}
|
|
name="${head}/${2}"
|
|
mv $1 $name
|