factor/cp_dir

5 lines
45 B
Bash

#!/bin/sh
mkdir -p `dirname $2`
cp -v $1 $2