script to copy replace a symlink with the file it links to

This commit is contained in:
Jorge Vásquez Pérez
2019-01-10 21:43:03 -08:00
parent 3fe6921180
commit 4beb0730d2
Executable
+10
View File
@@ -0,0 +1,10 @@
#!/bin/bash
for link
do
loc="$(dirname "$link")"
#echo 'loc = ' $loc
dir="$(readlink "$link")"
#echo 'dir = ' $dir
mv "$dir" "$link"
#echo rm "$link"
done