bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#22568: "grep ... | tee file" drops the 'n' in its output


From: oldefoxx
Subject: bug#22568: "grep ... | tee file" drops the 'n' in its output
Date: Fri, 5 Feb 2016 15:41:49 -0600
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1

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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]