Subject: "grep ... | tee file" drops the 'n' in its output

From: oldefoxx <[email-masked]>
Date: Fri, 5 Feb 2016 15:41:49 -0600

Odd problem.  Seems to be partly tied to when IFS=\n is used for 
handling read statements.  Can't find a way around it that works 
reliably, so forced to use
     grep  ... > file; cat file
or
     grep ... >> tmp; cat tmp; cat tmp >> file; rm tmp

Not near as clean and elegant, and is always after the act, not during it.

I tried variances on several comands like cat, list, echo, and tee is 
really quite unique in what it does.  A simple concept, but a great tool 
for what it accomplishes.

Donald Darden