The find
command helps to find files in a directory. It returns the relatives path of the files found. If you want to create symbolic links of all found files you will need the absolute path of them.
This is the right way to create symbolic links using find
.
find some_path -type f -name '*.file_extension' -exec ln -s -t 'path_to_put_the_created_links' "$(readlink -f "{}")" \;
Ref: convert symbolic link with relative path to absolute using find - Stack Overflow
Written using Stack Edit