Re: Grouped pipeline clobbering question

2006-03-20 Thread Paul Jarc
Phillip Susi <[EMAIL PROTECTED]> wrote: > cat file | ( head --lines=1 ; sed -e x ) > > I thought that head should consume the first line from the pipe, leaving > the rest queued for sed to consume, but this does not seem to be the > case. head may read an arbitrary amount of data from the pi

Grouped pipeline clobbering question

2006-03-20 Thread Phillip Susi
I'm a bit confused by the results I'm seeing with a pipeline to a group. I was trying to parse a text file in such a way as the first n lines are passed straight through, and then a sed script is applied to the rest. I thought I could do that with something like this: cat file | ( head --lin