| Crates.io | trail_lines |
| lib.rs | trail_lines |
| version | 0.1.0 |
| created_at | 2022-09-24 11:48:11.802547+00 |
| updated_at | 2022-09-24 11:48:11.802547+00 |
| description | Trail lines displays last n lines of given standard input |
| homepage | |
| repository | https://github.com/akankshasainics/trail-lines |
| max_upload_size | |
| id | 672967 |
| size | 565,778 |
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.


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.
# 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