vipe - Man Page
edit pipe
Examples (TL;DR)
- Edit the output of
command1
before piping it intocommand2
: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
Synopsis
command1 | vipe | command2
Description
vipe allows you to run your editor in the middle of a unix pipeline and edit the data that is being piped between programs. Your editor will have the full data being piped from command1 loaded into it, and when you close it, that data will be piped into command2.
Arguments
vipe takes an argument --suffix that can be used to provide a file extension to the temp file generated. This enables editors to provide syntax highlighting and activate modes. For example, you can call vipe like
vipe --suffix csv
to create a tempfile with .csv extensions which makes Emacs (or your favorite editor) launch in CSV major mode.
Environment Variables
- EDITOR
Editor to use.
- VISUAL
Also supported to determine what editor to use.
Author
Copyright 2006 by Joey Hess <id@joeyh.name>
Licensed under the GNU GPL.