Path: utzoo!attcan!uunet!munnari.oz.au!bruce!labtam!foster!cbp From: cbp@foster.avid.oz.au (Cameron Paine) Newsgroups: comp.unix.questions Subject: Re: edit first line of long file Message-ID: <1990Oct25.154444.12966@foster.avid.oz.au> Date: 25 Oct 90 15:44:44 GMT References: <27338@shamash.cdc.com> Organization: Avid Systems Pty Ltd, Melbourne, Australia. Lines: 14 In <27338@shamash.cdc.com> ddh@hare.cdc.com (Dan Horsfall) writes: >Plan B: pull off the first line with "line", pass it to sed, and >somehow magically get lines 2-n sent to stdout with cat. [...] Try something like: (line | sed 's/root/ROOT/'; cat) < /etc/passwd Cameron -- cbp@foster.avid.oz - ACSnet cbp@foster.avid.oz.au - Internet ...!{hplabs,mcvax,nttlab,ukc,uunet}!munnari!foster.avid.oz.au!cbp - UUCP