[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: mv command behavior
- From: Aaron Konstam <akonstam sbcglobal net>
- To: For users of Fedora <fedora-list redhat com>
- Subject: Re: mv command behavior
- Date: Mon, 09 Jul 2007 10:12:56 -0500
On Mon, 2007-07-09 at 23:00 +0700, lists dwsasia com wrote:
> Hi, I don't know if I already sent this question or not, my server
> died before, and I havn't been able to receive the mails for a while.
>
> I want to move the files from one dir to another, but only if they are
> newer. So I do:
>
> mv -u /tmp/dirA/dirB /dirC/dirB
>
> Meaning moving it from being a subdir of /tmp/dirA to be a subdir of /dirC.
>
> The first time it works, but the next time it will end up being like this:
>
> /dirC/dirB/dirB :(
>
> Could I use the "cp -ru" instead with some other flag to remove files
> successfully copied?
>
> /Peter
>
Are you sure the second time you did not execute this:
mv -u /tmp/dirA/dirB /dirC/dirB/
--
=======================================================================
A penny saved is ridiculous.
=======================================================================
Aaron Konstam telephone: (210) 656-0355 e-mail: akonstam sbcglobal net
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]