I am trying replace a line with another line and add new line below that using a shell script.
I want to replace:
JAVA_HOME=/usr/lib/jvm/java-1.8.0-ibm-220.127.116.11.10-1jpp.1.el7.x86_64 export PATH JAVA_HOME
That means, it has to replace replace
export PATH with these two lines.
Please help me how can I do with sed or shell script