less replace-symbolink-links-with-original-files.md
Replace symbolink links with original files
# historical archive — written years ago, kept as it was. Some info is dated.
If you have ever needed to replace symbolic links with the original files, all you need to do is run this simple command:
cp -av --remove-destination `readlink esempio_file.txt` esempio_file.txt
Here is something slightly more complex to do it recursively, without changing the names, inside the directory containing the symbolic references:
for f in * ; do cp -av --remove-destination `readlink $f` $f; done