env-replace: un-expand environment variables for more compact output
Project description
env-replace
Pipe commands that produce lots of output through env-replace
to replace expanded environment variables
(especially prefix paths in build output) with the environment variables themselves.
Install:
python3 -m pip install env-replace
Usage:
export PREFIX="/super-long-prefix-path"
echo "cc -I$PREFIX/include -L$PREFIX/lib ..." | env-replace
reverses environment variable expansion so that the output is:
cc -I$PREFIX/include -L$PREFIX/lib ...
instead of
cc -I/super-long-prefix-path/include -L/super-long-prefix-path/lib ...
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
env_replace-1.1.0.tar.gz
(3.3 kB
view details)
Built Distribution
File details
Details for the file env_replace-1.1.0.tar.gz
.
File metadata
- Download URL: env_replace-1.1.0.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.19.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9f7f2fac6738dde987f2fa87c20839feab67416c3f78f453ee52f5badc9c1725 |
|
MD5 | bb32518b47800e18817b6558fccaa982 |
|
BLAKE2b-256 | c3f9c100c54485fd42cd412fa023a551857cecf64e63bedd6370900d4a7d12d1 |
File details
Details for the file env_replace-1.1.0-py3-none-any.whl
.
File metadata
- Download URL: env_replace-1.1.0-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.19.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e0a00b373a9f0192a0e9482df7a1a02b1234d8acf3a5d33c3b5196b52fc17f8b |
|
MD5 | 002f04d4f4d9c50f337bcc9038f82830 |
|
BLAKE2b-256 | ce17d90abaec2d1bd48aceab76aacbbcc995006ec9e42d1b91120ef8c34389a6 |