Skip to main content

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


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 details)

Uploaded Source

Built Distribution

env_replace-1.0.0-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file env_replace-1.0.0.tar.gz.

File metadata

  • Download URL: env_replace-1.0.0.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.19.1

File hashes

Hashes for env_replace-1.0.0.tar.gz
Algorithm Hash digest
SHA256 e26f62824cda3881fefd79bb96bfbc7d00e8c92d429d589f612e5653deaf8bde
MD5 058f9541591cfd3645f490b013413940
BLAKE2b-256 ba4848138dd3f55c2086fec3f7278af2977e4297440a6dc0fa4a575e9ace6216

See more details on using hashes here.

File details

Details for the file env_replace-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for env_replace-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3d4d6d05541bfb263fe2cae229faae1ae5be75b582f83817ba130b210f13db8e
MD5 e8102f0d6775367eabffbbd5ad691a2c
BLAKE2b-256 9aafdee4f8aec42c708c2f462306a8e0412475a468a3c1b301f2a4e483aec31c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page