I'd like to make links to all files in a directory tree.
Which means, create the same directory structure and make the links in them to the respective subdirectory in the original dir.
That could be done with
cp -R -s ../foo .
But – that needs an absolute path. So rather
cp -R -s `readlink -e ../foo` `readlink -e .`
I would like the resulting links to be relative.
How would I do that?