funnel(1)
π funnel(1) π
okay bestie, you know how your fave show is on and you wanna watch it on your laptop AND your TV AND your phone at the same time? that's the vibe. this is funnel, from the logtools crew, and she splits one lil pipe stream into one or more files or programs. one input, many outputs. iconic behaviour honestly. β¨
πΈ SYNOPSIS πΈ
funnel [|] [>[>]file] [|process]
π¦ DESCRIPTION π¦
so funnel reads data from standard input and writes it out to several output streams at once. she's a splitter, she's a multitasker, she's doing the most and we love her for it. π
here's how the lil symbols work:
- the
|symbol means "copy standard input to standard output." yes literally just pass it through, bestie. she's in the group chat too. - the
>symbol means a file name comes immediately right after it β no separating spaces, not even one, fr fr. the file gets truncated if it already exists, or created if it doesn't. - the
>>version means the file gets appended to if it exists. no wiping, just adding. respectful. π«Ά - a
|symbol followed immediately by text means that text is a command, and it gets run bysystem(), with all the input piped straight into it. give her a job and she'll feed it. π
β EXIT STATUS β
0β no errors, we ate and left no crumbs π1β error opening input, sad girl hours π- anything else β that's
100 +the number of commands or files that failed. yeah. she counts them. she remembers. π
π FEATURES π
she uses popen (3) for output, which means shell expansion does get performed. cute, right? β¨
but listen β if you want that shell expansion, you have to quote your parameters correctly so that they get expanded bypopen(3) and not by the shell that callsfunnel. quote it right or it's giving chaos. π
π AUTHOR π
this program, its manual page, and the Debian package were all written by Russell Coker <russell@coker.com.au>. king behaviour. π
π SEE ALSO π
popen(3)
okay that's the whole page bestie, ty for coming to my ted talk, go split some streams and slay π β¨
this was Russell Coker <russell@coker.com.au>, version 0.06, and it's a funnel(1) situation β mwah, bye π¦
π¦ where this page comes from
- debian bookworm: logtools 0.13e+nmu2
- debian trixie: logtools 0.13e+nmu3 Β· GPL-2.0-only
- ubuntu jammy: logtools 0.13e+nmu2
- ubuntu noble: logtools 0.13e+nmu2
- ubuntu questing: logtools 0.13e+nmu3
- ubuntu resolute: logtools 0.13g Β· GPL-2.0-only
- ubuntu stonking: logtools 0.13g Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms