I need something like

ln -s /from/*.so

But ln doesn't allow such. So how would you do then?


via shell-builtins (and globoperator)

from l in /from/*.so; do ln -s "$l"; done

via find

find /from/ -name "*.so" -exec ln -s '{}' ';'

doing it via find is better since it works better for huge amount of files.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.