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 Mime-Version: 1.0 (Apple Message framework v734) In-Reply-To: <017630AA6DF2DF4EBC1DD4454F8EE29706B183D5@rsana-ex-hq1.NA.RSA.NET> References: <017630AA6DF2DF4EBC1DD4454F8EE29706B183D5 AT rsana-ex-hq1 DOT NA DOT RSA DOT NET> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <298EFF5A-1652-4BFC-9D45-7C99E10C34B4@rehley.net> Content-Transfer-Encoding: 7bit From: Peter Rehley Subject: Re: sed doesnt convert varibale values??? Date: Thu, 6 Oct 2005 10:41:11 -0700 To: "Cygwin List'" X-IsSubscribed: yes On Oct 6, 2005, at 10:36 AM, Maloney, Michael wrote: > > 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 It's not a sed thing, it's a shell thing. When you put the expression in single quotes, the shell doesn't touch the string, but by putting the string in double quotes the shell will parse the string before sending it to sed. This is standard for unix, linux, cygwin, etc, etc > > 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/ > > > -- 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/