Block Pruner
Project description
Block Pruner
How would you go about deleting blocks of [start;end]
if the block contains 615
in example.txt ?
example.txt
a
2
start
a
b
615 b
d
end
f
a
g
start
610
h
i
end
b
3
start
e
e
615
s
s
end
a
$ block_pruner --start start --end end --needle 615 example.txt
a
2
f
a
g
start
610
h
i
end
b
3
a
Usage
block_pruner --start start --end end --needle 615 example.txt > out.txt
Development
For help getting started developing check DEVELOPMENT.md
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
block_pruner-0.0.1.tar.gz
(3.8 kB
view details)
Built Distribution
File details
Details for the file block_pruner-0.0.1.tar.gz
.
File metadata
- Download URL: block_pruner-0.0.1.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9a701620e9bb56114944eb93e6832c562ae97170e31231a782a6d653024e458e |
|
MD5 | ca92baf0325e81b706e91e7ae0e79b98 |
|
BLAKE2b-256 | 3b224c181072f690dbe2d2ee8f46bbec924747dc229cd87b5ed435c8abd365c3 |
File details
Details for the file block_pruner-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: block_pruner-0.0.1-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8ac512ab17377c9f91b36c52cbca4c848153a53a52b085012405730145edabdc |
|
MD5 | fefb20dfd80ad03b667ce8e9654a4a69 |
|
BLAKE2b-256 | 4607db3e04f7e046819fcb2ced65e6cae64614ba8d681f13953473c7c21006f9 |