#!/bin/sh rpath="$(dirname `readlink -f $0`)" dot="$rpath/file" cmd="$@" for i in $dot/* ; do from="$i" to="$HOME/.`basename $i`" rm -rf "$ln" echo "'$from'" "'$i'" rm -f "$to" ln -s -f "$from" "$to" done