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.0.0.tar.gz
(3.1 kB
view hashes)
Built Distribution
Close
Hashes for env_replace-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3d4d6d05541bfb263fe2cae229faae1ae5be75b582f83817ba130b210f13db8e |
|
MD5 | e8102f0d6775367eabffbbd5ad691a2c |
|
BLAKE2b-256 | 9aafdee4f8aec42c708c2f462306a8e0412475a468a3c1b301f2a4e483aec31c |