Using Python as awk alternative
Project description
awpie
Using Python as awk alternative.
Installation
$ pip install awpie
Usage
Upper case all inputs:
$ printf 'apple\norange\n' | awpie 'print(line.upper())'
APPLE
ORANGE
Change orange to banana:
$ printf 'apple\norange\n' | awpie 'print(line) if line != "orange" else print("banana")'
apple
banana
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
awpie-0.2.0.tar.gz
(2.1 kB
view details)
Built Distribution
awpie-0.2.0-py3-none-any.whl
(2.6 kB
view details)
File details
Details for the file awpie-0.2.0.tar.gz
.
File metadata
- Download URL: awpie-0.2.0.tar.gz
- Upload date:
- Size: 2.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1664aa962da4c7e237b26bbf452a1582d43d71983ce955358442a487f9dab2ee |
|
MD5 | e0ac418228a9057afaec93f418de2989 |
|
BLAKE2b-256 | caaa571a648f535ad8d8046d56b196cc9dc55fbe7c119241997e434973f1a225 |
File details
Details for the file awpie-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: awpie-0.2.0-py3-none-any.whl
- Upload date:
- Size: 2.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c82155e827378592b960f10f22567ee46e5ff2dd66b49e78f9bba5e2767a0688 |
|
MD5 | 04c93453a4d0ebb13bb8fca51c0b75be |
|
BLAKE2b-256 | aada1638b1f0b8bf186850980a55485847179478c76eeb841aa7a746fe5345b9 |