News for hackers. Stuff that matters.
Re:Log Everything as JSON. Make Your Life Easier. by chrisbroadfoot on Thursday April 26, 2012 @11:52PM (#3897439)
I often use cat and pipe to grep, it's nicer to have a left -> right flow.
Re:Log Everything as JSON. Make Your Life Easier. by ralph on Friday April 27, 2012 @05:12AM (#3898240)
I don't like it, but you can do

    <foo grep bar | ...
if you really want L-to-R whilst avoiding the redundant cat and its overhead. That doesn't allow grep to do its speed-ups though, because it's still reading stdin, not a filename.
Re:Log Everything as JSON. Make Your Life Easier. by lindvall on Friday April 27, 2012 @12:10AM (#3897480)
Ends up that passing the file directly to grep will allow it to use tricks to make processing faster than reading from a pipe.