Skip to main content

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


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.3.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

block_pruner-0.0.3-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file block_pruner-0.0.3.tar.gz.

File metadata

  • Download URL: block_pruner-0.0.3.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

Hashes for block_pruner-0.0.3.tar.gz
Algorithm Hash digest
SHA256 fbd31049337c4883ed9dcee6ebad222ac668dd217c374261ad8234fe0033f16d
MD5 819f897a354b782e0195ddc598f004f4
BLAKE2b-256 a1735ea04fc2a23111379405309a5a5d1f7192bfc21ec1cade65e3f8712bd756

See more details on using hashes here.

File details

Details for the file block_pruner-0.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for block_pruner-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 892fcecebc7f863fc348415d8abe0c0e44871c4aa951503c7cf366c493c66c07
MD5 c76e57580911af0453f9afa7ebe5b05a
BLAKE2b-256 90e6632b61986f5f75dea2cba460d476c219f63acb3ce27c87cde78410cb6aca

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