[[ This message was both posted and mailed: see
the "To," "Cc," and "Newsgroups" headers for details. ]]
In article <01HW.BB41582E0039150119267520news.dsl.pipex.com> , Eric
Edwards <NOericESPAMgenie.net> wrote:
I needed to do this last week...> I have a massive source base and just want one small sub project from it but
> it includes .h files from all over the tree. I just want the files that are
> needed by the sub-project.
I found that I had multiple copies of some files in my folder tree. (A
1) I exported the project to an XML file, and opened it with BBEdit.
2) Copied all lines containing <PATH>
3) Removed <PATH> and <\PATH> - this gave me a list of file neames.
4) I made a unix shell script to find each file in turn , and add it to
echo "filename1.h" > list.txt
find /full/path/to/folder/tree -name filename1.h -print >> list.txt
echo "filename2.h" >> list.txt
find /full/path/to/folder/tree-name filename2.h -print >> list.txt
echo "filename3.h" >> list.txt
find /full/path/to/folder/tree-name filename3.h -print >> list.txt
echo "filename4.h" >> list.txt
find /full/path/to/folder/tree-name filename4.h -print >> list.txt
This gave me what I needed ti find and delete the duplicate files...