for in find -type -name prev -name next do ln -sf modules done

1
for i in $(find . -type l ! -name '*.prev' ! -name '*.next'); do ln -sf modules/$i; done