/ Published in: Bash
Expand |
Embed | Plain Text
mvp() { oldFilePath=$1 newFilePath=$2' if [ ! -f $newFilePath ]; then mkdir -p ${newFilePath%/*} mv $oldFilePath $newFilePath fi }
You need to login to post a comment.
mvp() { oldFilePath=$1 newFilePath=$2' if [ ! -f $newFilePath ]; then mkdir -p ${newFilePath%/*} mv $oldFilePath $newFilePath fi }
You need to login to post a comment.