factor/cp_dir

6 lines
60 B
Bash
Executable File

#!/bin/sh
echo $1
mkdir -p "`dirname \"$2\"`"
cp "$1" "$2"