Differences between revisions 17 and 19 (spanning 2 versions)
Revision 17 as of 2012-04-12 20:30:50
Size: 263
Editor: e36freak
Comment: all gone
Revision 19 as of 2012-09-11 07:44:32
Size: 309
Editor: dslb-088-072-055-065
Comment:
Deletions are marked like this. Additions are marked like this.
Line 2: Line 2:
== How can i perform a substitution with arbitrary values ("s/$foo/$bar/") safely, without treating either value as a regular expression or worrying about other special characters? == == Can I use something like templates with bash? ==
Bash does not have any native way to use templates. However, depending your actually goals may just evaluating the file with an new bash or shell instance could do the trick.
Line 4: Line 5:
This FAQ has been merged with [[BashFAQ/021|Faq #21]]. However, this is discussed on the [[TemplateFiles]]-Page

Can I use something like templates with bash?

Bash does not have any native way to use templates. However, depending your actually goals may just evaluating the file with an new bash or shell instance could do the trick.

However, this is discussed on the TemplateFiles-Page

BashFAQ/110 (last edited 2021-09-30 00:41:01 by emanuele6)