Thank you Gary for your reply. It is actually the substring of the line that I have to check. Here's the sed command that I use:
sed 's/^JVM_OPTS=\"/&\-Xbootclasspath\/p\:\/eng\/x.jar <sed_test.sh >sed_test_new.sh
As you can see, I am matching this substring
JVM_OPTS+" at the beginning of the JVM_OPTS line in the script, and inserting my bootclasspath argument right after. I am going to look at your code, and see if I can either get it to work for my case, or come up with something that works.
Thanks!!
Vicki