[X-Unix] Finder FUBARs another 'move'

Craig A. Finseth fin at finseth.com
Sat Dec 8 14:17:41 PST 2007


	...
   So I'm thinking of making a shell script that will:

   1) compare two folders

   2) move files from SOURCE to TARGET which don't exist on TARGET

   3) compare files which exist on both.
   3a) If identical, delete the copy from SOURCE.
   3b) If not identical, move from SOURCE to TARGET


   But then I thought "I wonder if I'm reinventing the wheel?"

   Any ideas?  Where should I be looking?

>From your description:

	cp -R <source> <target>

should do the trick.  Read the man page.

Craig


More information about the X-Unix mailing list