Possible Duplicate:
How can I “relink” a lot of broken symlinks?
Is there any way to move a file to a new location, and then re-target its symlinks to the new location, using a shell script? I'd like to find a way to move a file programmatically without breaking its symlinks.