A custom Unix tail program implementation
Project description
—- nktail —-
Usage: $ nktail [options] <filename>
Options: By default, nktail will output the last 10 lines of the passed file. You can set any count of output lines using ‘-n’ option.
$ nktail -n 100 <filename>```
If you run nktail with ‘-f’ option, it displays the lines and then monitors the file. As new lines are added to the file by another process, tail updates the display.
$ nktail -f <filename>
As a module:
from nktail import tail tail(file_handler: BinaryIO, is_following: bool, number_of_lines: int, output_writer: Callable[[str], None])
Enjoy!!!
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
File details
Details for the file nktail-0.1.tar.gz.
File metadata
- Download URL: nktail-0.1.tar.gz
- Upload date:
- Size: 1.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d199bb15065ef521b907d11172c38cdb993dd2209288ba08aea88f1693f99f64
|
|
| MD5 |
825720abbfba4873a4ec9399cd682f2a
|
|
| BLAKE2b-256 |
74e4c1df519b2f6831168acbabd8868d969e26a3d6385a9dc231e914cb04438d
|