Opentopia Directory Encyclopedia Tools

Vertical bar

Encyclopedia : V : VE : VER : Vertical bar


Punctuation
apostrophe ( ' ) ( )
brackets ( ( ) ) ( [ ] ) ( ) ( 〈 〉 )
colon ( : )
comma ( , )
dashes ( ) ( ) ( ) ( )
ellipsis ( ) ( ... )
exclamation mark ( ! )
full stop/period ( . )
guillemets ( « » )
hyphen ( - ) ( )
interpunct ( · )
question mark ( ? )
quotation marks ( " ) ( ‘ ’ ) ( “ ” )
semicolon ( ; )
slash/solidus ( / )
Interword separation
spaces (   ) ( ) ( )
General typography
ampersand ( & )
asterisk ( * )
asterism ( )
at ( @ )
backslash ( \ )
bullet ( )
caret ( ^ )
currency ( ¤ ) & ¢, $, , £, ¥
dagger ( ) ( )
degree ( ° )
interrobang ( )
number sign ( # )
percent and related signs ( % ) ( ) ( )
pilcrow ( )
prime ( )
Inverted exclamation point (¡)
inverted question mark (¿)
section sign ( § )
tilde ( ~ )
Irony mark
Sarcasm mark
umlaut/diaresis ( ¨ )
underscore/understrike ( _ )
vertical line/pipe/broken bar ( | ) ( ¦ )

Vertical bar, vertical line or pipe ("|") is the name of the ASCII character at position 124 (decimal). Broken bar ("¦") is a separate character that appeared (along with vertical bar) first in the EBCDIC family of character sets, and was copied from there into ISO 8859-1 and Unicode. The PC keyboard used in the United Kingdom features separate keys for "vertical bar" and "broken bar", however most UK keyboard drivers today map both keys onto the ASCII character "vertical bar", as "broken bar" has hardly any practical application. Keyboards in other countries do not make this distinction, and there, the "vertical bar" character is sometimes depicted as a broken bar, to distinguish it from the I (uppercase i) character.

Etymology

The name pipe for the character "|" was a natural consequence of its usage in Unix shells, where it is used to notate the usage of the unix pipeline construct.

Usage:

Mathematics

The vertical bar is used as a mathematical symbol in

Backus-Naur form

In Backus-Naur form 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.
::= |

Unix

A pipe is an inter-process communication mechanism originating in Unix which allows the output of one process to be used as input to another. In most Unix shells (command interpreters), this is represented by the vertical bar character. This feature is found in most versions of DOS (and hence Windows) as well.

Regular expression

In regular expressions, the pipe indicates alternation. E.g., egrep 'foo|bar' matches lines containing 'foo' or 'bar'.

Disjunction

In many programming languages, it is used to designate the logic operation or, either bitwise or or logical or.

Specifically, in C and other languages following C syntax, such as Perl and Java, (a | b) denotes bitwise or; while double vertical bar (a || b) denotes (short-circuited) logical or.

Concatenation

In PL/I and SQL, the operator "||" denotes string concatenation.

Delimiter

Although not as common as commas or tabs, the vertical bar/pipe symbol can be used as delimiter in a flat file. An example of a pipe-delimited standard data format is LEDES 1998B.

Khoisan orthography

In the Khoisan languages, the pipe is used to write the dental click.

MediaWiki

The pipe character is used to separate parameters in MediaWiki templates; it is also used when a categorized article must be alphabetically sorted in a different place than its title, and to make links.

 


From Wikipedia, the Free Encyclopedia. Original article here. Support Wikipedia by contributing or donating.
All text is available under the terms of the GNU Free Documentation License See Wikipedia Copyrights for details.

Search Titles
0123456789
ABCDEFGHIJ
KLMNOPQRST
UVWXYZ?

E-mail this article to:

Personal Message: