I am trying to create symbolic links for a set of files.Suppose I want to link all the files with the pdf extension from an origin_directory to my present directory.Up to now I have this command:ln -nfs origin_directory/*.pdf -t .This works preatty nicely. The problem happens if I don't have any pdf file in my origin_directory, because in this case a file *.pdf is created in my present directory, and it is a broken link.Is there a way to avoid this?
Asterisk behaviour in creating links
bash;symlink;console;ln