3 releases

Uses old Rust 2015

0.1.2 Aug 12, 2017
0.1.1 Aug 11, 2017
0.1.0 Aug 11, 2017

#20 in #substitution

Custom license

4KB
58 lines

renvsubst

Text substitution tool like envsubst, but it can escape vars.

Install

$ cargo install renvsubst

Usage

Substitutes the values of environment variables.

$ export FOO=foooo
$ echo 'I like $FOO' | renvsubst
I like foooo

It can escape variable name.

$ echo 'I like $FOO, ${FOO}, \$FOO, \${FOO}' | renvsubst
I like foooo, foooo, $FOO, ${FOO}

Dependencies

~4MB
~82K SLoC