https://github.com/nchern/ptee
https://github.com/nchern/ptee
command-line-tool shell unix-command
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/nchern/ptee
- Owner: nchern
- License: mit
- Created: 2020-07-22T18:57:16.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2021-10-16T20:26:23.000Z (over 4 years ago)
- Last Synced: 2025-03-15T07:44:56.362Z (over 1 year ago)
- Topics: command-line-tool, shell, unix-command
- Language: Go
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ptee
Pronounced `/piːtiː/`. Process `tee`.
This utility starts a process(1st argument specifies the command to run), copies stdin to this process' stdin AND to stdout as well.
## Use cases
### Shell
Prints out `file` to console and copies it to clipboard on Mac
```bash
$ cat file | ptee pbcopy
```
### Vim integrations
Can be used as a convenient util to write `vim` command filters. With its help you can send selected lines to an external command without modifying a text in the current buffer.