delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/10/06/13:36:21

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
MIME-Version: 1.0
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" <mmaloney AT rsasecurity DOT com>
To: <cygwin AT cygwin DOT com>
X-IsSubscribed: yes
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/


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019