Vertical bar or pipe is the name of the ASCII character at position 124 (decimal). The character is depicted as either a solid vertical bar ("|") or a vertical bar with a break in the middle (broken bar "¦"). The character is usually depicted as a broken bar on IBM PC keyboards to distinguish it from other characters. However, today the "broken bar" is a separate character, U+00A6 (¦).
In BNF the expression consists of sequences of symbols and/or sequences separated by '|', indicating a choice, the whole being a possible substitution for the symbol on the left.
The name pipe for the character "|" came into common usage due to the fact that it is used in unix to pipe the output of one program into another program.
Source | Copyright