0
Q:

cp file and create directory if not exists

mkdir -p "$d" && cp file "$d"
0
mkdir -p /foo/bar && cp myfile.txt $_
0

New to Communities?

Join the community