A little tool to slow the tail :)
Have you ever experienced difficulties catching the tail?
Struggle no more!
$ go get github.com/smileart/slowtail
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
MIT ยฉ Serge Bedzhyk