|
| From: | Jim Meyering |
| Subject: | Re: command cp |
| Date: | Thu, 17 May 2007 21:36:14 +0200 |
"gri grigri" <address@hidden> wrote:
> I have no bug, but an missing feature:
> cp -p ... ...
> like
> mkdir -p ...
> for the case, that I want to copy a file in a yet not existing directory.
cp's --parents might do what you want:
$ mkdir -p a/b/c x
$ cp -r --parents a/b/c x
$ find x
x
x/a
x/a/b
x/a/b/c
| [Prev in Thread] | Current Thread | [Next in Thread] |