if [ $# -ne 2 ];then | |
echo example : ./file_touch.sh lynq/CPE ap/Makefile | |
echo Create the lynq/CPE/ap/ directory and copy the ap/Makefile file to the lynq/CPE/ap/ directory | |
exit | |
fi | |
str=$1/$(dirname $2) | |
echo $str/$(basename $2) | |
mkdir -p $str | |
cp $2 $str |