← 返回命令列表

Linux command

vipe 命令

网络

涉及管道、覆盖或删除,执行前请先确认路径和参数。

常用示例

Edit pipe content

echo "text" | vipe

Edit command output

cat [file.txt] | vipe | [next_command]

Edit with specific editor

EDITOR=[vim] cat [file.txt] | vipe

Transform data interactively

echo '{"key": "value"}' | vipe | jq .

说明

vipe inserts a text editor into a Unix pipeline. It reads standard input into a temporary file, opens it in the editor specified by the EDITOR or VISUAL environment variable, and writes the edited content to standard output when the editor exits. This allows interactive modification of data flowing through a pipeline, which is useful for manually fixing input before it reaches the next command, debugging pipeline data, or performing one-off transformations that are easier to do in an editor than with sed or awk.

FAQ

What is the vipe command used for?

vipe inserts a text editor into a Unix pipeline. It reads standard input into a temporary file, opens it in the editor specified by the EDITOR or VISUAL environment variable, and writes the edited content to standard output when the editor exits. This allows interactive modification of data flowing through a pipeline, which is useful for manually fixing input before it reaches the next command, debugging pipeline data, or performing one-off transformations that are easier to do in an editor than with sed or awk.

How do I run a basic vipe example?

Run `echo "text" | vipe` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

Where can I find more vipe examples?

This page includes 4 examples for vipe, plus related commands for nearby Linux tasks.