Buchbinder, Barry (NIH/NIAID niaid.nih.gov> writes:
> >
> > Given that the purpose of head is to print the first few lines of a
> > file, it kind of makes sense to me that it would close the file after
> > it's read them rather than keeping the input file open and manually
> > reading-and-disca
Here's
> a test on a file with 4207 lines in it.
>
> dk mace /artimi/firmware> cat diffs.txt | tee tmp2.txt | head -4100 >
/dev/nu
> ll
> tee: write error
> dk mace /artimi/firmware> cat diffs.txt | tee tmp2.txt | head -4100 >
/dev/nu
> ll
> dk mace /artimi/firmware> cat diffs.txt | te
Don't break head.
We won't want "Argument list too long" when piping a stream to head.
-- Original Message ---
From: "Buchbinder, Barry (To: cygwin-cygwin.com
Sent: Mon, 7 Feb 2005 13:49:49 -0500
Subject: RE: tee piping to head gives error message
At Monday, February 07, 2005 1:13 PM, Dave Korn wrote:
>> -Original Message-
>> From: cygwin-owner On Behalf Of Buchbinder, Barry (NIH/NIAID)
>> Sent: 07 February 2005 17:28
>
>> As described in the Subject. Though it seems that everything works
>> OK; tee just gives and error message und
> -Original Message-
> From: cygwin-owner On Behalf Of Dave Korn
> Sent: 07 February 2005 18:13
>
> > But the number of lines/bytes at which the error disappears
> > does not seem to be constant.
Ah, I just managed to reproduce this. That is indeed rather strange. Hmm.
Oh, ha
> -Original Message-
> From: cygwin-owner On Behalf Of Buchbinder, Barry (NIH/NIAID)
> Sent: 07 February 2005 17:28
> As described in the Subject. Though it seems that everything works OK; tee
> just gives and error message under some circumstances.
>
>
> /tmp> cat stafflist.htm | tee t
6 matches
Mail list logo