Pipe Symbol | Copy and Paste — Vertical Bar Meaning & Uses
|
Tap or click to select · Copy with Ctrl+C / Cmd+C
The pipe symbol | is one of those characters you see everywhere once you start looking. Programmers use it daily. Linux users type it constantly. Mathematicians use it for absolute values and divisibility. It goes by many names — vertical bar, pipe, OR operator, Sheffer stroke — but it is always the same simple vertical line.
Quick Copy
Pipe / Vertical Bar
Unicode: U+007C | HTML: |
Double Vertical Bar
Unicode: U+2016
Broken Bar
Unicode: U+00A6
What Is the Pipe Symbol Called?
Depending on context, you might hear it called:
- Pipe — in Linux/Unix (commands connected by pipes)
- Vertical bar — the official Unicode name
- OR operator — in programming (logical OR)
- Sheffer stroke — in logic (NAND operation)
- Bar — shorthand in casual conversation
Pipe Symbol in Programming
Logical OR
In most programming languages, a single | is bitwise OR, and double || is logical OR:
if (x > 0 || y > 0) { // at least one is positive }Bitwise OR
Combines bits of two numbers:
5 | 3 // equals 7 (binary: 101 | 011 = 111)Pipe in JavaScript / TypeScript
Used in RxJS for chaining operators, and in many frameworks for template syntax:
observable$.pipe( map(x => x * 2), filter(x => x > 10) )Pipe Symbol in Linux / Unix
The pipe is fundamental to the Linux command line. It takes the output of one command and feeds it as input to the next:
cat log.txt | grep "error" | wc -lThis reads a file, filters for lines containing "error", and counts them. Three commands, one pipe chain.
Other common uses:
- ps aux | grep nginx — find running nginx processes
- ls -la | less — page through a long directory listing
- echo "hello" | tr a-z A-Z — convert to uppercase
- history | tail -20 — show last 20 commands
Pipe Symbol in Mathematics
- |x| — absolute value of x
- a | b — a divides b (number theory)
- P(A | B) — conditional probability
- ||v|| — norm of vector v (double pipe)
- |S| — cardinality (size) of set S
How to Type the Pipe Symbol
Windows
- Shift + \\ (the key above Enter on most keyboards)
- Alt code: Alt + 124 (numeric keypad)
Mac
- Shift + \\ (same as Windows)
- Or use Character Viewer: Cmd+Ctrl+Space, search "vertical bar"
Mobile (iOS / Android)
- Tap the symbols key (123 or ?123)
- Look for the | on the symbols panel (may be on second symbols page)
Pipe Symbol in Everyday Use
Table Separators
Markdown tables use pipes: | Column 1 | Column 2 |
Menu Navigation
File | Edit | View — pipes separate menu items in documentation.
Text Decoration
Used in ASCII art and text-based dividers for emails and social media posts.
Related Symbols
Pipe
Ampersand
Forward Slash
Backslash
Exclamation
Tilde
The pipe symbol might look simple, but it powers command lines, programming logic, and mathematical notation worldwide. Copy it from above, or just remember: Shift + backslash.