2022-11-23 21:06:24 +00:00
|
|
|
# filter
|
|
|
|
|
2022-11-23 22:42:28 +00:00
|
|
|
A simple tool to filter the input interactively in a POSIX pipeline.
|
|
|
|
|
|
|
|
## How to build?
|
|
|
|
Just run `go build .`
|
|
|
|
|
2022-11-24 12:23:43 +00:00
|
|
|
## How to install
|
|
|
|
Just copy the `filter` program somewhere in your `PATH`
|
|
|
|
|
2022-11-23 22:42:28 +00:00
|
|
|
## Usage
|
|
|
|
Use the filter command in a pipeline like:
|
|
|
|
|
|
|
|
```bash
|
2022-11-24 12:23:43 +00:00
|
|
|
git commit -a --fixup $(git log --oneline|filter|cut -d ' ' -f 1 |xargs)
|
2022-11-23 22:42:28 +00:00
|
|
|
```
|