PIPELINE(1)
π PIPELINE(1) β pipeline from the General Commands Manual π
okay bestie, this is the pipeline(1) page, and itβs about connecting two commands with a pipe. very plumbing, very slay. π«Ά
πΈ NAME πΈ
pipeline β run two commands with a pipe between them π
π SYNOPSIS π
In an execlineb(1) script:
pipeline [-d] [-r | -w] { prog1... } prog2...
β¨ DESCRIPTION β¨
okay so pipeline reads prog1... inside a block (cf. execline-block(7)) and unquotes it. then it runs prog1... as a child process and exec(3)s into prog2..., with a pipe between prog1's stdout and prog2's stdin. literally the classic pipe setup, but make it execline. π
The pid of prog1 is available inside prog2... as the ! environment variable. yes, the whole entire exclamation mark. iconic. βΌοΈ
You can easily create a chain of pipes, bestie. this:
execlineb -Pc 'pipeline { a } pipeline { b } c'
is roughly equivalent to this:
sh -c 'exec a | b | c'
except that shells usually run c as a child process like a and b, and exec has no effect. no cap. π
π OPTIONS π
-dβ Runprog1...as a grandchild ofpipeline. This is meant to prevent a zombie from hanging around ifprog2...fails to wait for its children. spooky zombie prevention, but make it UNIX. π§-rβ Makeprog1...the writer andprog2...the reader. This is the default. default behavior ate, honestly. β¨-wβ Makeprog1...the reader andprog2...the writer. flip it, reverse it, periodt. π
π¦ SEE ALSO π¦
background(1), backtick(1), execlineb(1), foreground(1), if(1), ifelse(1), ifte(1), ifthenelse(1), runblock(1), exec(3), execline-block(7)
This man page is ported from the authoritative documentation at: https://skarnet.org/software/execline/pipeline.html β go read the source, bestie, itβs giving official. π
π AUTHORS π
Laurent Bercot Alexis <flexibeast@gmail.com> (man page port)
source/version: Debian; date: February 14, 2021 β thatβs the whole footer vibe, mwah bestie πβ¨
π¦ where this page comes from
- nixpkgs unstable: execline 2.9.9.2
- nixpkgs unstable: execline-man-pages 2.9.9.1.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms