I try to remove string from .bash_profile
. String is added when my shell script run:
My string at bash_profile as follows:
# for Myapllication
export MYAPP_HOME=/opt/myapp
I want to remove the strings from .bash_profile
when myapp is removed via rpm
.
How to remove any string from a file via shell script? (or possible alternative method)