Vertical bar

   

Punctuation marks

apostrophe (' )
parentheses ( ( ) ),
brackets ( [ ] ); ( { } ); ( < > )
colon ( : )
comma ( , )
dash ( ); ( ); ( ); ( )
ellipsis ( ) ( ... )
exclamation mark ( ! ); ( ¡ ! )
full stop/period ( . )
hyphen ( - ); ( )
interrobang ( )
question mark ( ? ); ( ¿ ? )
quotation marks ( ‘ ’ ); ( “ ” );
    ( ‚ ’ ); ( „ ” ); ( ‚ ‘ ); ( „ “ );
    ( ‹ › ); ( « » ); ( › ‹ ); ( » « );
    ( 「 」 ); ( 『 』 )
semicolon ( ; )
slash ( / ) and backslash ( \ )
space (   ) and interpunct ( · )

ampersand ( & )
asterisk ( * ) and asterism ( )
dagger ( † ‡)
bullet ( , more )
commercial at ( @ )
number sign ( # )
prime ( ′ ) and double prime (″)
tilde ( ~ )
underscore ( _ )
vertical bar / pipe ( | )

Vertical bar, 'Verticon', 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 (&brvbar;).

Usage:

Mathematics

The vertical bar is used as a mathematical symbol in

Cursors

In text that cannot be edited but can be selected, for example, on a web page, the cursor can also be a vertical bar, possibly with little cross bars at the top and bottom.

Wiki markup

The vertical bar is used in internal links to separate a link from the displayed text. E.g., [[c programming language|C]] displays as C.

Backus-Naur form

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.

<personal-name> ::= <name> | <initial>

Unix

A pipe is an operating system mechanism originating in Unix which allows the output of one process to be used as input to another. Used in a shell command, this is represented by the vertical bar character. See Pipe (Unix).

Regular Expression

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

Disjunction

In the C, perl, and many others, it is used to designate bitwise or a|b or doubled up logical or a||b.

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.

Etymology

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.

Retrieved from "http://www.mywiseowl.com/articles/Vertical_bar"

This page has been accessed 200 times. This page was last modified 04:44, 24 Nov 2004. All text is available under the terms of the GNU Free Documentation License (see Copyrights for details).