Differences between revisions 17 and 21 (spanning 4 versions)
Revision 17 as of 2012-04-12 20:30:50
Size: 263
Editor: e36freak
Comment: all gone
Revision 21 as of 2013-03-18 18:07:40
Size: 307
Editor: 12
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 on your actual goals, just evaluating the file with a new bash or shell instance could do the trick.
Line 4: Line 5:
This FAQ has been merged with [[BashFAQ/021|Faq #21]]. This is further 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 on your actual goals, just evaluating the file with a new bash or shell instance could do the trick.

This is further discussed on the TemplateFiles page

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