I need to replace my tomcat.conf string content using linux command
Example: I am having a text like below
CATALINA_HOME="/usr/share/tomcat"
JAVA_HOME="/apps/opt/jdk"
in tomcat.conf file
I need to replace like below
JAVA_HOME="apps/opt/Java/jdk-1.7"
Only JAVA_HOME content need to replace
Please help me resolve this
NOTE : If it is a single line command, it ll be very useful