This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# mvdir file path/to/folder | |
# Condition to test whether there are 2 input | |
# And condtition to test whether first parameter is a file/directory | |
if [ $# -eq 2 ] && [ -e $1 ] | |
then | |
file=$1; | |
targetPath=$2; |