[TriLUG] copying files
Joseph Mack NA3T
jmack at wm7d.net
Tue Jun 19 21:29:52 EDT 2012
On Tue, 19 Jun 2012, David Brain wrote:
> Seems like 'cp --parents' would be helpful, if you have:
>
> source/dir1/foo
>
> cp --parents source/dir1/foo dest
>
> will result in:
>
> dest/source/dir1/foo
never heard of --parents ;-\
just tested it out. This example does just what I want. I'll
have to see if it works in the general case (tomorrow)
> could probably be included in find.. find ./ -mmin -5 -type f -exec cp
> --parents -auv {} ../backup \; .. or something like that.
no problem :-)
thanks
Joe
--
Joseph Mack NA3T EME(B,D), FM05lw North Carolina
jmack (at) wm7d (dot) net - azimuthal equidistant map
generator at http://www.wm7d.net/azproj.shtml
Homepage http://www.austintek.com/ It's GNU/Linux!
More information about the TriLUG
mailing list