MBU
MBU

Reputation: 5098

Options for the | (pipe) command

Does the Unix | (pipe) command have any options?

Upvotes: 7

Views: 890

Answers (3)

Maxim Gueivandov
Maxim Gueivandov

Reputation: 2385

| is not a command, rather a syntax construct interpreted by your shell. Thus you need to check your particular shell documentation to see if it supports some pipe specific options.

To better answer your question, can you tell which shell do you use and what are you trying to achieve?

Upvotes: 0

SiegeX
SiegeX

Reputation: 140327

In short, no, but you can get the exit values of each of the commands in the pipe via $PIPESTATUS. You can change the behavior of it's return value via the shell option shopt -s pipefail and you can change how much is buffered from command to command via ulimit -p

Upvotes: 10

Ryan Bigg
Ryan Bigg

Reputation: 107728

| is not a command and as such does not have any arguments. However the commands used around the pipe can take commands. Consult the manpages for those commands.

Upvotes: 4

Related Questions