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
nktail-0.1.tar.gz
(1.9 kB
view hashes)