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.4.tar.gz
(3.8 kB
view details)
Built Distribution
File details
Details for the file block_pruner-0.0.4.tar.gz
.
File metadata
- Download URL: block_pruner-0.0.4.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c836fdcc0f76d70339ff0be926ef898163a1ad91249ea3aba1077d78cc81f0ed |
|
MD5 | 5a88cdb5af91f8623acf551612fd0295 |
|
BLAKE2b-256 | 9672775c0d59b7a338a7088087a12cabfb08a74bc84a05aa144723aebeecc16f |
File details
Details for the file block_pruner-0.0.4-py3-none-any.whl
.
File metadata
- Download URL: block_pruner-0.0.4-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2bf4ebf52eb26de60c9d12859669b4324a6a71959cb4a9a233e7d12dd26251df |
|
MD5 | 4dac5918c4493da7c5ec2c3bc63ceaf7 |
|
BLAKE2b-256 | 911e04e4f6522fc515bd53f46882460f02305c5b26e80e001c9345b9247ec26a |