I have hundreds of symlinks, all specifically named, pointing to files on various network drives. I’m moving to a new NAS, so the path of all of these files is going to change.
Can someone help me figure out a way to automatically edit all of these symlinks to point to the moved files, without moving or changing the name of the symlinks?
I know that ln -sfn will work to update the symlinks, I’m just not sure how I would automate this process to update hundreds of files.
Joe Childs is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.