3 ms·
I like piping the output of cat and the mental image of one process feeding another. It's inconsequential, but it brings an epsilon of joy.
by copperx 3mo ago
I like piping the output of cat and the mental image of one process feeding another. It's inconsequential, but it brings an epsilon of joy.
- djtriptych 3mo agosame I just like monads lol. cat + pipe feels purer and has lower mental load for me, which dominates the efficiency of spawning an extra process for, typically, a few microseconds.
- witrak 3mo agoExactly. It allows for a consistent pattern: cmd1 | cmd2 | cmd3 | ... | cmdn
- adrian_b 3mo agoYou have exactly the same mental image if you start a pipeline in the right way, with a file redirection: "<input_file cmd1 | cmd2 | cmd3 ...". This adds the joy of doing only what is really needed, without extraneous effort. Moreover, in this way the start of a pipeline becomes symmetrical to its end, which frequently is an output redirection.