[nzlug] Any way to edit broken soft links?

Martin Bähr mbaehr at email.archlab.tuwien.ac.at
Mon Dec 10 15:32:59 NZDT 2007


On Mon, Dec 10, 2007 at 03:29:24PM +1300, Raimund Eimann wrote:
> 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.

in that case you should be able to write a script:

for each link:
  read link target;
  convert target to utf-8
  replace link with new one to converted target.

greetings, martin.
-- 
cooperative communication with sTeam      -     caudium, pike, roxen and unix
offering: programming, training and administration   -  anywhere in the world
--
pike programmer   working in new zealand        open-steam.org|webhaven.co.nz
unix system-      bahai.or.at                        iaeste.(tuwien.ac|or).at
administrator     (caudium|gotpike).org                          is.schon.org
Martin Bähr       http://www.iaeste.or.at/~mbaehr/



More information about the NZLUG mailing list