1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-01 02:15:22 +02:00
tldr/pages/common/vipe.md
Managor d2e6da7679
common*: refresh old pages part 7 (#16290)
Co-authored-by: Machiavelli <145562237+MachiavelliII@users.noreply.github.com>
2025-05-01 14:38:45 +03:00

483 B

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}}