[ale] mv files with tar??
Drag0n
dragon at atlantacon.org
Wed Oct 30 14:55:19 EST 2002
i think the following will work.
tar -cvf - -C /path/to/orig | tar -xvpf -
Drag0n
dragon at atlantacon.org
Armsby John-G16665 wrote:
>
> I need to mv a large number of files to a designated subdirectory, with timestamps, permisisons, etc.INTACtT.
>
> The command: mv /mydirectory/* . where I am presetnly at the designated subdirectory yields a "too many args" error. I am on HPUX.
>
> I know there is a command string using tar and pipe(|) to copy the files keeping the timestamps, permisions, etc intact in the new designated directory.
>
> I don't recall the command. anyone got it?? It is pretty commonly used.
>
> John
>
> ---
> This message has been sent through the ALE general discussion list.
> See http://www.ale.org/mailing-lists.shtml for more info. Problems should be
> sent to listmaster at ale dot org.
---
This message has been sent through the ALE general discussion list.
See http://www.ale.org/mailing-lists.shtml for more info. Problems should be
sent to listmaster at ale dot org.
More information about the Ale
mailing list