From 4beb0730d26e4a91ceeaba2322b319a48409dd64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jorge=20V=C3=A1squez=20P=C3=A9rez?= Date: Thu, 10 Jan 2019 21:43:03 -0800 Subject: [PATCH] script to copy replace a symlink with the file it links to --- bash/cplink.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 bash/cplink.sh diff --git a/bash/cplink.sh b/bash/cplink.sh new file mode 100755 index 0000000..e47b51c --- /dev/null +++ b/bash/cplink.sh @@ -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