I am new to the bash shell scripting and have come across the challenge. I think I can reload my ".profile" file by just doing:
. .profile
but I'm trying to execute the same code in the bash script when I try to writing and it is just not working. Any ideas why this is happening?