Files
cheatsheet-tldr/tldr/vipe
2025-05-02 00:19:39 +00:00

22 lines
576 B
Plaintext

---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# vipe
> Run a text editor in the middle of a UNIX pipeline.
> More information: <https://manned.org/vipe>.
- Edit the output of `command1` before piping it into `command2`:
`{{command1}} | vipe | {{command2}}`
- Buffer the output of `command1` in a temporary file with the specified file extension in order to aid syntax highlighting:
`{{command1}} | vipe --suffix {{json}} | {{command2}}`
- Use the specified text editor:
`{{command1}} | EDITOR={{vim}} vipe | {{command2}}`