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

Enjoy!!!

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

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

Source Distribution

nktail-0.1.tar.gz (1.9 kB view details)

Uploaded Source

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

Hashes for nktail-0.1.tar.gz
Algorithm Hash digest
SHA256 d199bb15065ef521b907d11172c38cdb993dd2209288ba08aea88f1693f99f64
MD5 825720abbfba4873a4ec9399cd682f2a
BLAKE2b-256 74e4c1df519b2f6831168acbabd8868d969e26a3d6385a9dc231e914cb04438d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page