Some file copying help please
Cristian Tarhon
ctar at loc.gov
Tue Apr 19 22:10:41 UTC 2005
cp -R /dir1/dir2 /dir5
This message sent from BlackBerry Enterprise Server.
>>> Travis.R.Waldher at boeing.com 4/19 6:00 pm >>>
I need to copy data from here
/dir1/dir2/dir3/dir4
To
/dir5/dir2/dir3/dir4
I need the path of dir2 on down to remain in tact. But the top folder
is changing.
I basically want to copy dir4 from one filesystem to another and retain
it's path, short the name of the first directory (dir1/dir5). Without
having to manually go in and create dir2 and dir3, which are both empty.
IS there a way to make cp do this? I can't find one, it just errors out
stating that the destination path is invalid. I'm struggling to find a
way to get tar to do this well.
I have about 400 directories like this to copy, so I need to figure out
a command line to script this sucker out.
Thanks,
Travis
_______________________________________________
Redhat-install-list mailing list
Redhat-install-list at redhat.com
https://www.redhat.com/mailman/listinfo/redhat-install-list
To Unsubscribe Go To ABOVE URL or send a message to:
redhat-install-list-request at redhat.com
Subject: unsubscribe
More information about the Redhat-install-list
mailing list