Results 1 to 3 of 3
Hi,
I need to replace JAVA_OPTS= with JAVA_OPTS=<some_value>\.
I need to give "\" value at the end of the replacement. I have tried with the following but it is not ...
- 06-02-2010 #1Just Joined!
- Join Date
- Sep 2007
- Posts
- 3
Defining Variable with sed
Hi,
I need to replace JAVA_OPTS= with JAVA_OPTS=<some_value>\.
I need to give "\" value at the end of the replacement. I have tried with the following but it is not working:
sed -e "s|JAVA_OPTS= |JAVA_OPTS=<some_value>\"
Can any one suggest me a solution for this!
Regards,
Ganesh Kumar
- 06-02-2010 #2Linux Enthusiast
- Join Date
- Aug 2006
- Posts
- 631
- 06-02-2010 #3Just Joined!
- Join Date
- Sep 2007
- Posts
- 3
Hi,
I have tried the following but it is not working.
sed -e "s|JAVA=|JAVA=/usr/ganesh\\|" mytest > result
It gives "sed: -e expression #1, char 26: Unterminated `s' command" error.
-Ganesh


Reply With Quote
