Combine directories

2005-04-07 Thread Debbie Cooper
John W. Krahn wrote: It doesn't look THAT great. You're right John. I probably used my limited knowledge of Perl and a lot of books to redo this script so that it worked exactly the way I wanted. But, it works great for me! I do appreciate your correcting the syntax though. It helps in

RE: Combine directories

2005-04-07 Thread Debbie Cooper
Chris Devers asked: Why aren't you using rsync for this? Excellent question. It's because I'd never heard of rsync before. That's why I'm on this list. Because I learn something new everyday. I've since asked someone here who's familiar with that product to test it out for me and he said it w

Re: Combine directories

2005-04-06 Thread Chris Devers
On Wed, 6 Apr 2005, John W. Krahn wrote: > So it wasn't that bad of an example. I still prefer this though: $ rsync dir1 dir2 targetdir Yours is still way too verbose :-) -- Chris Devers -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Combine directories

2005-04-06 Thread JupiterHost.Net
So the sub directories in DirA will be combined with like-named sub directories in DirB and they will move up a level in the hierarchy. Untested: Why not use File::Copy::Recursive's dircopy() it has been tested and its simpler (to develop code and maintain it later or if you inherit the job) :)

Re: Combine directories

2005-04-06 Thread John W. Krahn
John W. Krahn wrote: Debbie Cooper wrote: I have the following script for combining txt files in a directory but I don't know the Perl syntax well enough to apply it to combining directories (if I can modify this script for that purpose). I've done an extensive web search but haven't found much

Re: Combine directories

2005-04-06 Thread John W. Krahn
Debbie Cooper wrote: I need to combine directories as follows: Source directory structure: DirA SubDirAA More directories SubDirAB More directories SubDirAC More directories DirB SubDirAA More

Re: Combine directories

2005-04-06 Thread JupiterHost.Net
I want to copy these directories so that the target directory looks like this: Target directory structure SubDirAA combined directories SubDirAB combined directories SubDirAC combined directories SubDirBC combined directories How about this (or a variation for your

Re: Combine directories

2005-04-06 Thread Chris Devers
On Wed, 6 Apr 2005, Debbie Cooper wrote: > So the sub directories in DirA will be combined with like-named sub > directories in DirB and they will move up a level in the hierarchy. Why aren't you using rsync for this? You can write it by hand in Perl, but rsync is the Swiss Army knife of file

Combine directories

2005-04-06 Thread Debbie Cooper
I need to combine directories as follows: Source directory structure: DirA SubDirAA More directories SubDirAB More directories SubDirAC More directories DirB SubDirAA More directories SubDirAB