MLUG: Re: [MLUG] Re: [MLUG - DISCUSSION] directory listings?
Re: [MLUG] Re: [MLUG - DISCUSSION] directory listings?
Email address obfuscation in effect -- please click here to turn it off.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Mike Miller wrote:
> 
> I moved this from the discussion list to the membership list...
> 
> Michael wrote:
> 
> > Can anyone think what the easiest method to search through a list of
> > subdirectories for any files with the same names? Each subdirectory
> > has thousands of files in it so effeciency is important. Thanks.
> 

What I would do is a find for each directory, saving each as a file.
Then I would merge the files.  Then I would do a sort on the big
file, sorting to whatever comes after the last "/" in each line.
Then I would look through the sorted file looking for consecutive
entries whose part after the last "/" match.  I would do these
using a perl script or a sequence of perl scripts.


-- 
Stephen Montgomery-Smith
EMAIL:PROTECTED
http://www.math.missouri.edu/~stephen
--
To manage your subscription, go to http://mlug.missouri.edu/members/edit.php

Archives are available at http://mlug.missouri.edu/list-archives/