Hopefully such a thing is possible, I would like to scan all the files in the subfolders of
and create symlinks to these files in a different folder with a different file extension. So I start with this folder structure:
/home/user/source/folder1/random_file_name.bin /home/user/source/folder2/random_file_name.bin /home/user/source/folder3/random_file_name.bin ...
And I would like to create symlinks to the bin files like such:
/home/user/dest/folder1.txt -> /home/user/source/folder1/random_file_name.bin /home/user/dest/folder2.txt -> /home/user/source/folder2/random_file_name.bin /home/user/dest/folder3.txt -> /home/user/source/folder3/random_file_name.bin ...
Can I do this in only one loop or must I scan each folder of "source" to extract the folder name then loop in each folder to find the bin file in each folder? There's only one bin file per folder, with a random name by the way.
Unless there is a way to do this with the "find" command?