Skip to content

Trail is command line tool which keep only n lines of a stream on the terminal screen.

License

Notifications You must be signed in to change notification settings

akankshasainics/trail-lines

Repository files navigation

trail

trail is command line tool which keeps only the last n lines of a stream on the terminal screen.

It behaves exactly as tail command if the input is not a continuos stream. Otherwise it behaves as if tail is being run at every point of time.

Example: ping command output on screen

continous_stream

Example: ls command output on screen

single_stream

Installation

cargo install trail_lines

Arguments

trail command only accept one optional argument:

-l, --lines (default: 5)
	Defines how many lines should be kept on terminal.
	To disable trailing pass 0.

Examples

# Will show results of only recent 10 pings
ping 8.8.8.8 | trail_lines --lines 10

# Will behave similar to `tail` command 
ls | trail_lines -l 20

About

Trail is command line tool which keep only n lines of a stream on the terminal screen.

Resources

License

Stars

Watchers

Forks

Packages

No packages published