GNU bug report logs - #22568
"grep ... | tee file" drops the 'n' in its output

Previous Next

Package: coreutils;

Reported by: oldefoxx <oldefoxx <at> cox.net>

Date: Fri, 5 Feb 2016 21:45:02 UTC

Severity: normal

Tags: moreinfo

Done: Assaf Gordon <assafgordon <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: oldefoxx <oldefoxx <at> cox.net>
To: 22568 <at> debbugs.gnu.org
Subject: bug#22568: "grep ... | tee file" drops the 'n' in its output
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




This bug report was last modified 6 years and 269 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.