[X-Unix] Finder FUBARs another 'move'

Eric F Crist ecrist at secure-computing.net
Sat Dec 8 17:40:32 PST 2007


Rsync -v <source> <destination> && rm -r <source>

Check my work on the rsync options, I can't verify from the restaurant. ;)
---
Eric F Crist
Secure Computing Networks  

-----Original Message-----
From: TjL <luomat at gmail.com>

Date: Sat, 8 Dec 2007 18:40:56 
To:fin at finseth.com,"A place to discuss Mac OS X from the perspective of the command line." <x-unix at listserver.themacintoshguy.com>
Subject: Re: [X-Unix] Finder FUBARs another 'move'


On Dec 8, 2007 5:17 PM, Craig A. Finseth <fin at finseth.com> wrote:

> >From your description:
>
>         cp -R <source> <target>

That won't remove the files from the source.  I could do

       cp -R  <source> <target> && rm -rf <source>

but that will fail because some of the files already exist, so the rm
part of the command will not execute.  So I could just run rm -rf
<source> but that seems rather dangerous to me.

I've got a script that I've been working on.  I've attached it here
(not sure if the list allows attachments, guess I'll find out).

Comments welcome.

TjL

_______________________________________________
X-Unix mailing list
X-Unix at listserver.themacintoshguy.com
http://listserver.themacintoshguy.com/mailman/listinfo/x-unix


More information about the X-Unix mailing list