Giter Site home page Giter Site logo

slowtail's Introduction

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

slowtail's People

Contributors

smileart avatar

Stargazers

John Taylor avatar Anton Ilin avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.