multiple programs reading a single stream
So i had to grep multiple patterns into their own files from one stream and had forgotten about this and was trying to do this with awk & sed (which got very ugly really fast). instead, we just need tee, grep, and bash extensions. example: tee <srv1_20140912.log >(grep “access” >20140912_access.txt) >(grep “fail” >20140912_fail.txt) lets clean … Read More