Path: utzoo!attcan!uunet!clyde.concordia.ca!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!ucsd!ucbvax!bloom-beacon!eru!hagbard!sunic!mcsun!ukc!warwick!cudcv From: cudcv@warwick.ac.uk (Rob McMahon) Newsgroups: comp.unix.questions Subject: Re: First-line-only editing, part 2: Portable solutions Message-ID: <1990Nov11.132835.8152@warwick.ac.uk> Date: 11 Nov 90 13:28:35 GMT References: <4031@awdprime.UUCP> <687@npdiss1.StPaul.NCR.COM> <4152@awdprime.UUCP> Sender: news@warwick.ac.uk (Network news) Organization: Computing Services, Warwick University, UK Lines: 17 In article <4152@awdprime.UUCP> daveb@bach.austin.ibm.com (Dave Burton) writes: >sed 's/.../.../;1q' file; tail +2 file > or >(sed 's/.../.../;1q'; tail +2) < file Quack, quack, oops. This second one doesn't work. Sed buffers its input and a bufferful goes missing. If it didn't a line goes missing. >Now, truly, nuff said. :-) Sorry about that. Rob -- UUCP: ...!mcsun!ukc!warwick!cudcv PHONE: +44 203 523037 JANET: cudcv@uk.ac.warwick INET: cudcv@warwick.ac.uk Rob McMahon, Computing Services, Warwick University, Coventry CV4 7AL, England