with help from pixellany and others here at linuxquestions.org I finished my script. It will add and remove a directory from your path using the /etc/profile. I was going to make it change the path for different users but for now it will for everyone.
chpath.tar.gz
it will work with the bash shell.
I created it on a fedora 8 distribution OS.
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++