Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kant01ne/pinf
pinf is a tool that will pipe an input to the terminal output if not found in the file given as an argument.
https://github.com/kant01ne/pinf
Last synced: 22 days ago
JSON representation
pinf is a tool that will pipe an input to the terminal output if not found in the file given as an argument.
- Host: GitHub
- URL: https://github.com/kant01ne/pinf
- Owner: kant01ne
- License: mit
- Created: 2020-05-17T14:22:45.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-05-17T14:23:03.000Z (over 4 years ago)
- Last Synced: 2024-10-24T21:38:23.053Z (2 months ago)
- Language: Go
- Size: 1000 Bytes
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pinf
`pinf` is a tool that will **P**ipe an input to the terminal output **I**f **N**ot **F**ound in the file given as an argument.
# Usage example
```
▶ cat "things.txt"
Zero
One
Two
Three▶ cat otherthings.txt
One
Four
Five▶ cat things.txt | pinf otherthings.txt
Zero
Two
Three▶ cat otherthings.txt
One
Four
Five
```Note that Pinf will not add new lines to the input file. If that's what you want to achieve, you can use [anew](github.com/tomnomnom/anew).
# Install
```
▶ go get -u github.com/NkxxkN/pinf
```# Credits
This tool was 100% inspired from `anew` from [TomNomNom](https://github.com/tomnomnom).