Skip to main content

Tools to pop lines from the head/tail of a file to stdout. Makes files into queues!

Project description

Tools to pop lines from the head/tail of a file to stdout. You can also remove random items from the given files to stdout.

This allows you to treat a file on disk as a queue.

Modes

Head - popHead [numLines] [filename] - Removes “numLines” from the top of provided “filename”, and prints them on stdout.

Tail - popTail [numLines] [filename] - Removes “numLines” from the bottom of provided “filename”, and prints them on stdout.

Random - popRandom [numLines] [filename] - Removes “numLines” from random positions within provided “filename”, and prints to stdout in a random order.

Module

Also comes with a module, PopLines, which can perform the same operations within a script.

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

popLines-1.0.tar.gz (3.9 kB view details)

Uploaded Source

File details

Details for the file popLines-1.0.tar.gz.

File metadata

  • Download URL: popLines-1.0.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for popLines-1.0.tar.gz
Algorithm Hash digest
SHA256 953017daa688ea83d2a8d6fb011f3a072e5ab6f8e904478c5651520fa1b104a2
MD5 5aecf3d0808fd5fc0cb90e32afeea4eb
BLAKE2b-256 27b1ac4effaf4ea7caaa592829921c29f47f590fca7a124c34cc5d84da72fcee

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