[X-Unix] Finder FUBARs another 'move'

TjL luomat at gmail.com
Sat Dec 8 15:40:56 PST 2007


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: compare-and-move.sh.bz2
Type: application/x-bzip2
Size: 1936 bytes
Desc: not available
Url : http://listserver.themacintoshguy.com/pipermail/x-unix/attachments/20071208/5ce094a5/compare-and-move.sh.bin


More information about the X-Unix mailing list