/ Published in: Bash
![](/img/icon_sav.png?v3)
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 }
Comments
![RSS Feed for Comments RSS Icon](/images/rss.png?v3)
mvp() { oldFilePath=$1 newFilePath=$2' if [ ! -f $newFilePath ]; then mkdir -p ${newFilePath%/*} mv $oldFilePath $newFilePath fi }