-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Jan Engelhardt wrote: > On Sep 1 2007 00:41, primm wrote: >> I've 800 or so files and folders in a folder called nonmembers. I >> mkdir another folder in the folder nonmembers called members. I want >> to copy all the 800 files in nonmembers to members. I'm in the >> nonmembers folder at the command line. What do I type? > > rsync -AHPSXav --exclude=members * members/; > >> Sounds easy doesn't it. > > Indeed, I am not sure why everyone tries to use cp, ls, grep and > pipes. > > > > Jan
Indeed (now rsync as well)... when... cp -dpP * members will actually do the required job...( I did test it after I wondered why everyone was missing the obvious :-) ) I know there are apparently 39 ways to skin a cat but I wonder if we can collectively beat this on methods to copy of a directory contents to a sub-directory of that directory :-) The more obtuse the better :-) - -- ============================================================================== I have always wished that my computer would be as easy to use as my telephone. My wish has come true. I no longer know how to use my telephone. Bjarne Stroustrup ============================================================================== -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iD8DBQFG2RyYasN0sSnLmgIRAqf0AJ4qsgbz793TPHOD3ZRVxk7gEq26GQCgsb8U 2y5vvJNXI4w4t8NhJe1k1JI= =4tOP -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
