mountainbiker
Programmer
I got a Unix web file system with LOADS of duplicate files. Don't ask why These specific files have a very unique filename, e.g.,
/dir1/dir2/.../dirX/2002/08/24/20020824-0800-restOfFilename.
I would like to make ONE copy of the file to a new unique location, e.g.,
/dir1/dir2/2002/08/24/20020824-0800-restOfFilename.
At all the other locations I would like to delete the physical file and replace it with a Unix symbolic link (ln -s) to the new file. For example, I might have 6 locations with symbolic links to one location instead of 6 physical files. (Thus, freeing disk space and keeping web page hyperlinks functioning without problem.)
The web file system has almost a 800MB of files. Each file maybe duplicated up to about 10 times. There will be filenames that are not in the unique format (e.g., index.html, homepage.html, logo.gif, etc.) which can be ignored (at this time unless the contents, creation date, etc. are the same).
Thoughts/ideas/help?
/dir1/dir2/.../dirX/2002/08/24/20020824-0800-restOfFilename.
I would like to make ONE copy of the file to a new unique location, e.g.,
/dir1/dir2/2002/08/24/20020824-0800-restOfFilename.
At all the other locations I would like to delete the physical file and replace it with a Unix symbolic link (ln -s) to the new file. For example, I might have 6 locations with symbolic links to one location instead of 6 physical files. (Thus, freeing disk space and keeping web page hyperlinks functioning without problem.)
The web file system has almost a 800MB of files. Each file maybe duplicated up to about 10 times. There will be filenames that are not in the unique format (e.g., index.html, homepage.html, logo.gif, etc.) which can be ignored (at this time unless the contents, creation date, etc. are the same).
Thoughts/ideas/help?