Files
cheatsheet-tldr/tldr/vertical-bar
2024-10-02 00:17:10 +00:00

18 lines
354 B
Plaintext

---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# Vertical bar
> Pipe data between programs.
> More information: <https://gnu.org/software/bash/manual/bash.html#Pipelines>.
- Pipe `stdout` to `stdin`:
`{{command}} | {{command}}`
- Pipe both `stdout` and `stderr` to `stdin`:
`{{command}} |& {{command}}`