mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-24 20:35:26 +02:00
mkfifo: add usage examples (#13488)
Co-authored-by: spageektti <git@spageektti.cc>
This commit is contained in:
parent
391ae0cd9e
commit
c373845f80
1 changed files with 8 additions and 0 deletions
|
@ -6,3 +6,11 @@
|
|||
- Create a named pipe at a given path:
|
||||
|
||||
`mkfifo {{path/to/pipe}}`
|
||||
|
||||
- Send data through a named pipe and send the command to the background:
|
||||
|
||||
`echo {{"Hello World"}} > {{path/to/pipe}} &`
|
||||
|
||||
- Receive data through a named pipe:
|
||||
|
||||
`cat {{path/to/pipe}}`
|
||||
|
|
Loading…
Add table
Reference in a new issue