#!/bin/bash #small script to correct su path problem echo -n "Please enter the full path to your home directory ie /home/joe : " read ans echo -n "Is the path "$ans" correct (Y/n) ? " read pth if [ "$pth" = "n" -o "$pth" = "N" ] ; then : else cd "$ans" if ls -a | grep ".bashrc" >/dev/null ; then echo "ERROR .bashrc file already exists" exit 1 else mv .bash_login .bashrc fi fi echo "ok all done !" #end .