filt

command module
v0.8.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 24, 2022 License: MIT Imports: 1 Imported by: 0

README

filt Build Status GitHub release Coverage Code to Test Ratio Test Execution Time

filt is a interactive/realtime stream filter ( also known as "trial-and-error pipe" ).

screencast

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 install:

$ go install github.com/k1LoW/filt@latest

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.

Documentation

Overview

Copyright © 2019 Ken'ichiro Oyama <k1lowxb@gmail.com>

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL