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

master
Jorge Vásquez Pérez 7 years ago
parent 3fe6921180
commit 4beb0730d2

@ -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
Loading…
Cancel
Save