if [ -z $1 ] ; then echo "You must specify Directory of files to be symbolic linked" exit fi if [ -x $2 ] ; then STUFF="*" else STUFF=$2 fi echo $STUFF for i in $1/$STUFF do echo $i if [ -f $i ] ; then echo "Do you want this file symbolily linked --> $i" read a if [ $a = "y" ] ; then base=`basename $i` ln -sf $1/$base $base else echo "skipping file $i" fi else echo "Skipping non file(Directory,etc) $i" fi done