cd "$(dirname "$0")"

shopt -s extglob

for d in $(find . -not -name ".*" -not -name "*utama.sh" -type f); do
  f="${d/"."/""}"
  rel_path="${f//+([A-z_])\//"../"}"
  rel_path="${rel_path//\/+([A-z])*/"/"}"
  t=".${rel_path}utama$f"
  l="..$f"
  ln -sfv $t $l
  # echo "ln -sfv $t $l"
  # echo "$d ..$f"
  # rsync -av $d "..$f"
done
