/ Published in: Bash
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
mvp() { oldFilePath=$1 newFilePath=$2' if [ ! -f $newFilePath ]; then mkdir -p ${newFilePath%/*} mv $oldFilePath $newFilePath fi }