filt
filt
is a interactive/realtime stream filter ( also known as "trial-and-error pipe" ).
Usage
$ tail -F /var/log/nginx/access.log | filt
and enter Ctrl+C
.
How to filter files by trial and error
You can use --buffered
( -b
) option
$ cat /var/log/nginx/access.log | filt -b
and enter Ctrl+C
.
How to exit from filt prompt
Input "exit" to prompt or enter Ctrl+C
.
Enable or Disable saving history
Enable:
$ filt config history.enable true
Disable:
$ filt config history.enable false
Install
homebrew tap:
$ brew install k1LoW/tap/filt
manually:
Download binany from releases page
go get:
$ go get github.com/k1LoW/filt
Alternatives
- up: up is the Ultimate Plumber, a tool for writing Linux pipes in a terminal-based UI interactively, with instant live preview of command results.