help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-bash] bash way of variable substitution


From: Peng Yu
Subject: Re: [Help-bash] bash way of variable substitution
Date: Thu, 8 Feb 2018 09:24:12 -0600

> check http://mywiki.wooledge.org/TemplateFiles

Neither of the solutions is what I need.

- the one based on sed: I want the variable not specified to be
replaced be replaced with an empty string. sed does not do so.
- envsubst will replace all environment variables. I only want to
replace variables that I specified to replace. For ones I do not
specify, replace with empty strings.

-- 
Regards,
Peng



reply via email to

[Prev in Thread] Current Thread [Next in Thread]