News for hackers. Stuff that matters.
Re:For the Love of Pipes by OskarS on Tuesday January 22, 2019 @11:12AM (#18969296)
I don't like this style at all. If you're following the pipeline, it starts in the middle with "input", goes to the left for the grep, then to the right (skipping over the middle part) to sed.

     cat input | grep '^x' | sed 's/foo/bar/g'
Is far more readable, in my opinion. In addition, it makes it trivial to change the input from a file to any kind of process.

I'm STRONGLY in favor of using "cat" for input. That "useless use of cat" article is pretty dumb, IMHO.

Re:For the Love of Pipes by dearrifling on Tuesday January 22, 2019 @12:02PM (#18969808)
Note that '<input grep | foo' is also valid.