Skip to content

Commit 5335946

Browse files
authored
Update README.md
1 parent c972453 commit 5335946

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

README.md

+5-3
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ whose names match a predefined prefix/regexp.
3434
This option doesn't work when `-v` is used.
3535
* `-p regexp`: Limit substitution to variables that match this prefix.
3636
You can use some regular expression as prefix.
37-
Default to `[^}]+`.
37+
Default to `[^}]+`. Can be used as an alternative
38+
to `SHELL-FORMAT` option in the original GNU `envsubst`
3839

3940
It's highly recommended to use `-u` option. It's the original idea
4041
why this tool was written.
@@ -65,8 +66,9 @@ To limit substitution to variables that match some prefix, use `-p` option:
6566
The second command raises an error because the variable `TEST_VAR` matches
6667
the expected prefix `TEST_` and its value is not set.
6768

68-
You can also specify exactly a few variables to be substituted (which is exactly an alternative
69-
to the `shell-format` in the original GNU tool `envsubst`:
69+
You can also specify exactly a few variables to be substituted
70+
(which is exactly an alternative to the `shell-format` option
71+
in the original GNU tool `envsubst`):
7072

7173
$ echo '${TEST_VAR}' | ./genvsub -u -p 'VAR_NAME_3|VAR_NAME_3|VAR_NAME_3'
7274

0 commit comments

Comments
 (0)