Well a while or a for loop could do the job. The choice of which to go for, in my opinion, is dependent on how many different types of files there are, ie the
extensions.
So if all files or only a couple:
Code:
for files in ~/*
do
ln -sfv "$files" "/path/to/link"
done
If you change * to *.txt you get all txt files. The other downside here is that if you have a subfolder in the folder then it will get renamed to unless you
test that item is a file (will leave to you to find the test)
The other option would be a while loop and a find. This has the power of being able to use find's abilities to limit what items are found.
Example:
Code:
while read -r files
do
ln -sfv "$files" "/path/to/link"
done< <(find $HOME -maxdepth 1 -type f)
Again I will leave you to do man find and see what options you have