Skip to main content

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])


Project details

Release history Release notifications

This version


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for nktail, version 0.1
Filename, size File type Python version Upload date Hashes
Filename, size nktail-0.1.tar.gz (1.9 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page