https://github.com/fujiharuka/renvsubst
https://github.com/fujiharuka/renvsubst
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/fujiharuka/renvsubst
- Owner: FujiHaruka
- License: mit
- Created: 2017-08-11T13:51:47.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-08-12T05:36:12.000Z (almost 8 years ago)
- Last Synced: 2025-01-08T04:13:00.693Z (5 months ago)
- Language: Rust
- Size: 8.79 KB
- Stars: 0
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
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}
```