Re: Merging file sub-trees

2003-06-04 Thread Bill Mullen
On Tue, 3 Jun 2003 [EMAIL PROTECTED] wrote: > > In a message dated: Tue, 03 Jun 2003 12:49:57 EDT > "Lee D. Rothstein" said: > > >>Are you sure you're using the Gnu 'cp'? > >>My Debian man page has it mentioned and > >>it seems to work for me. > > > >== > > > >No stinkin '--reply' option for: >

Re: Merging file sub-trees

2003-06-04 Thread pll
In a message dated: Tue, 03 Jun 2003 12:49:57 EDT "Lee D. Rothstein" said: >>Are you sure you're using the Gnu 'cp'? >>My Debian man page has it mentioned and >>it seems to work for me. > >== > >No stinkin '--reply' option for: > > >cp, on Redhat: >-- >

Re: Merging file sub-trees

2003-06-04 Thread Lee D. Rothstein
Seeya Paul said: ;-) >Are you sure you're using the Gnu 'cp'? >My Debian man page has it mentioned and >it seems to work for me. == No stinkin '--reply' option for: cp, on Redhat: -- $ cp --version cp (fileutils) 4.1 Written by Torbjorn Granlund, Dav

Re: Merging file sub-trees

2003-06-04 Thread Michael O'Donnell
As long as you're in learning mode, allow me to point out that your examples will fail with filenames that (as is all too common) contain whitespace. ___ gnhlug-discuss mailing list [EMAIL PROTECTED] http://mail.gnhlug.org/mailman/listinfo/gnhlug-discus

Re: Merging file sub-trees

2003-06-04 Thread pll
In a message dated: Tue, 03 Jun 2003 10:41:37 EDT "Lee D. Rothstein" said: ># cp -a --reply=yes $1 $2/ && rm -fR $1 # '--reply' not recognized Are you sure you're using the Gnu 'cp'? My Debian man page has it mentioned and it seems to work for me. -- Seeya, Paul -- Key fingerprint = 1660 FE

Re: Merging file sub-trees

2003-06-04 Thread Lee D. Rothstein
Results of the merge move suggestions & testing: Thanks, youse guys. I've always wanted to use the '&&' construction && now I have! 10Q, too2Lee, yours ;-) # # Merge Move -- mmv # # cp -a $1 $2 && rm -rf $1 # Woiks! # cp -r $1/* c # Doesn't work # cp -a -

Re: merging file sub-trees

2003-06-03 Thread pll
In a message dated: Mon, 02 Jun 2003 15:51:24 EDT [EMAIL PROTECTED] said: >"cp" under Linux has become somewhat powerful; the following worked fine >for me: > >cp -a a c && rm -rf a > >Copy, recursively and with permissions, etc., retained, dir "a" into c; >then, if the copy worked, blow away a.

Re: merging file sub-trees

2003-06-03 Thread Kevin D. Clark
"Lee D. Rothstein" <[EMAIL PROTECTED]> writes: > In brief, I want the merge to move > everything from 'a' into 'c', > overwriting all like-named files, and > merging everything else Perhaps something like: cp -r a/* c does what you want? Regards, --kevin -- "The self is only that whi

Re: merging file sub-trees

2003-06-03 Thread ken
"cp" under Linux has become somewhat powerful; the following worked fine for me: cp -a a c && rm -rf a Copy, recursively and with permissions, etc., retained, dir "a" into c; then, if the copy worked, blow away a. Note that it will overwrite your stuff, though I think if you have "noclobber" set

Re: merging file sub-trees

2003-06-03 Thread Bill Mullen
On Mon, 2 Jun 2003, Lee D. Rothstein wrote: > At various different times 'mv' alone; or 'cp' followed by an 'rm' would > do this, but alas, no more. > > In brief, I want the merge to move everything from 'a' into 'c', > overwriting all like-named files, and merging everything else > > Example: >

Re: merging file sub-trees

2003-06-03 Thread Michael O'Donnell
One approach might be to just have one instance of tar (standing in the source directory) squirt all the files over to another instance that's standing in the destination directory, maybe like this: cd srcDir ; tar cf - . | tar xf - -C destDir ___

merging file sub-trees

2003-06-03 Thread Lee D. Rothstein
I want to be able to merge one sub-directory tree over another. I used to be able to do this before the posuxide of GNU/UNIX. [In the past I've been very impressed with how GNU utility writers have offered POSIX stuff, and alternatives allowing users to decide on how many PSI (POSIX Sucking Idiocie