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