Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Subject: sed doesnt convert varibale values??? Date: Thu, 6 Oct 2005 13:36:00 -0400 Message-ID: <017630AA6DF2DF4EBC1DD4454F8EE29706B183D5@rsana-ex-hq1.NA.RSA.NET> From: "Maloney, Michael" To: X-IsSubscribed: yes Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id j96HaH6L015289 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/