Dear all,

For some reason I corrupted my symlinks when moving around content of my HD. I came up 
with the attached very dirty fix for it.
I m no programmer, so it s not even a very dirty perl fix ;)

Or was there a proper fsck.cyg somewhere ?

# find / -x-type f -size 1 -o -size 2 -exec grep '^!<symlink>' "{}" \; > a
for u in $(cat a)
do
 cd $( dirname $u )
 ln -sf $(cat $u |sed 's/!<symlink>//; s/[^[:alnum:]/_.+-]//g') $u
done

Reply via email to