pipecmd - Run a command and pipe its output to an other one


NAME

pipecmd - Run a command and pipe its output to an other one


SYNOPSIS

pipecmd CMD_1 [ARGS] -- CMD_2 [ARGS]


DESCRIPTION

Equivalent to this shell command:

 CMD_1 | CMD_2

The first command's (CMD_1) arguments can not contain a double-dash (--), because it's the command separator for pipecmd(1). However, since only a total of 2 commands are supported, arguments for CMD_2 may contain double-dash(es).

You can chain pipecmd(1) commands together to get a pipeline equivalent to CMD_1 | CMD_2 | CMD_3, like:

 pipecmd CMD_1 -- pipecmd CMD_2 -- CMD_3


RATIONALE

It's sometimes more convenient to don't involve shell command-line parser.


SEE ALSO

pipexec(1)