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 hashes)
Built Distribution
Close
Hashes for block_pruner-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2bf4ebf52eb26de60c9d12859669b4324a6a71959cb4a9a233e7d12dd26251df |
|
MD5 | 4dac5918c4493da7c5ec2c3bc63ceaf7 |
|
BLAKE2b-256 | 911e04e4f6522fc515bd53f46882460f02305c5b26e80e001c9345b9247ec26a |