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
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 953017daa688ea83d2a8d6fb011f3a072e5ab6f8e904478c5651520fa1b104a2 |
|
MD5 | 5aecf3d0808fd5fc0cb90e32afeea4eb |
|
BLAKE2b-256 | 27b1ac4effaf4ea7caaa592829921c29f47f590fca7a124c34cc5d84da72fcee |