renvsubst

Crates.iorenvsubst
lib.rsrenvsubst
version0.1.2
sourcesrc
created_at2017-08-11 14:05:17.741322
updated_at2017-08-12 05:27:21.747521
descriptionSubstitution like envsubst, but can escape.
homepage
repository
max_upload_size
id27200
size4,247
Fuji Haruka (FujiHaruka)

documentation

http://github.com/FujiHaruka/renvsubst#README

README

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}
Commit count: 0

cargo fmt