[nzlug] Any way to edit broken soft links?

Raimund Eimann raimund at cs.auckland.ac.nz
Mon Dec 10 15:29:24 NZDT 2007


Hi,

On Monday 10 December 2007, Simon Green wrote:
> What's wrong with ln -fs <old> <new>?

This simply creates a new link. I'm looking for something to edit the existing 
link, because only a few characters have changed in the filename of the link 
target (that's why the link is broken now). If there would be a way to edit 
the "contents" of a link, I could simply change the characters in there as 
well and the link would work again.

Note: This is not about a single soft link. It's about several hundreds, maybe 
thousands. I don't want to fix them all manually by removing old links and 
creating new ones. I don't really believe that I'm the first person running 
into this problem?

Why all the original filenames have changed? Because umlaut characters were no 
longer displayed properly and I needed to run a convmv to convert all files 
in a large filesystem from a latin1 encoding into utf-8.

Cheers,
Raimund


Today's wisdom:
Suicidal twin kills sister by mistake!



More information about the NZLUG mailing list