vipe
Run a text editor in the middle of a UNIX pipeline. More information: https://joeyh.name/code/moreutils/.
- Edit the output of
command1before piping it intocommand2:
command1 | vipe | command2
- Buffer the output of
command1in 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