sed doesnt convert varibale values???
Maloney, Michael
mmaloney@rsasecurity.com
Thu Oct 6 17:36:00 GMT 2005
I am using sed and for some reason, it is entering the variable name and
not the value to output. The line looks like:
sed 's/weblogic.Server/$APP_SERVER_DOMAIN weblogic.Server/' $file
The output looks like:
%JAVA_HOME%\bin\java %JAVA_VM% %MEM_ARGS% %JAVA_OPTIONS%
-Dweblogic.Name=%SERVER
_NAME% -Dweblogic.ProductionModeEnabled=%PRODUCTION_MODE%
-Djava.security.policy
="%WL_HOME%\server\lib\weblogic.policy" "$APP_SERVER_DOMAIN
weblogic.Server"
It's just putting the variable name there. I went back an looked at some
earlier scripts that I wrote for Unix and the Unix sed worked just as I
am trying to do now.
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
More information about the Cygwin
mailing list