Skip to content

stupendoussuperpowers/trunk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

trunk

tail but filter when following.

Why?

I needed a small tool for work that would make it easy to filter tail -f outputs live. Decided to put one together.

Usage

Added feature for "sieving". Will follow for file changes

trunk -s <filter> /path/to/file

Usual tail commands are compatible

trunk -n <number of lines> /path/to/file

trunk -f /path/to/file

trunk -h

Usage: trunk.exe [OPTIONS] <FILE>

Arguments:
<FILE> Path of the file to tail/follow

Options:
-f, --follow Follow a file for live changes
-s, --sieve <SIEVE> Phrase to filter new lines with. Will automatically enable [-f --follow] [default: ]
-n, --num-lines <NUM_LINES> Number of lines from the end to tail [default: 5]
-h, --help Print help
-V, --version Print version

Building

cargo build

About

tail but filter when following.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages