A little tool to slow the tail :)
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
img
.gitignore
README.md
slowtail.go

README.md

slowtail 🐕

A little tool to slow the tail :)

Have you ever experienced difficulties catching the tail?

Fast tail

Struggle no more!

Installation

$ go get github.com/smileart/slowtail

Usage

Slow Tail 🐕

  Usage:
    slowtail [--delay=<ms>] [--rewind=<n>] [--interactive] [--porcelain] <file>
    slowtail --help
    slowtail --version

  Options:
    --interactive, -i      Interactive mode ( ⬆⬇ to make the flow faster/slower )
    --porcelain, -p        Human friendly output in interactive mode 🚽
                           Beware: output shouldn't be used with other commands!
    --delay=<ms>, -d=<ms>  Delay in milliseconds [default: 250]
    --rewind=<n>, -r=<n>   Rewind <n> lines back from the end of file [default: 0]
                           Keep in mind: you can't rewind STDIN but you can skip <n>
                           lines from the beginning using this option
$ tail -f /var/log/fast.log | slowtail -d 2000 -
$ slowtail -d 2000 -r 1000 - < /var/log/long.log
$ slowtail -d 2000 /var/log/nginx/access.log
$ slowtail -d 2000 - < <(ls)
$ slowtail -d 500 -i -p - < <(ls ~)

You can even have a slow cat! SLOW CAT, Carl!

$ cat /var/log/long.log | slowtail -d 1000 -r 100 -
$ cat /tmp/full.txt | slowtail -d 1000 -i - | tee /tmp/partial.txt

Fast tail

License

MIT © Serge Bedzhyk