Path: utzoo!attcan!uunet!samsung!uakari.primate.wisc.edu!uflorida!mlb.semi.harris.com!thrush.mlb.semi.harris.com!del From: del@thrush.mlb.semi.harris.com (Don Lewis) Newsgroups: comp.unix.questions Subject: Re: edit first line of long file Message-ID: <1990Oct24.200800.8776@mlb.semi.harris.com> Date: 24 Oct 90 20:08:00 GMT References: <4597:Oct2321:44:2190@kramden.acf.nyu.edu> <10201:Oct2404:23:3890@kramden.acf.nyu.edu> <27144@mimsy.umd.edu> Sender: news@mlb.semi.harris.com Organization: Harris Semiconductor, Melbourne FL Lines: 14 Nntp-Posting-Host: thrush.mlb.semi.harris.com In article <27144@mimsy.umd.edu> chris@mimsy.umd.edu (Chris Torek) writes: >On many machines, head uses standard I/O, and stdio reads in a block >and head prints out the first line. Then head exits, leaving the file >seek pointer pointing at the second block. Cat then reads and prints >blocks two through the end. And then there is SunOS. In 4.0.x, `(head -1; cat)