Path: utzoo!attcan!uunet!cs.utexas.edu!sun-barr!olivea!orc!inews!cmdnfs!bhoughto From: bhoughto@cmdnfs.intel.com (Blair P. Houghton) Newsgroups: comp.unix.questions Subject: Re: edit first line of long file Message-ID: <627@inews.intel.com> Date: 26 Oct 90 05:48:51 GMT References: <1990Oct25.154444.12966@foster.avid.oz.au> <568@inews.intel.com> <1990Oct25.165820.13706@foster.avid.oz.au> Sender: news@inews.intel.com Organization: Intel Corp, Chandler, AZ Lines: 20 In article <1990Oct25.165820.13706@foster.avid.oz.au> cbp@foster.avid.oz.au (Cameron Paine) writes: >In <1990Oct25.154444.12966@foster.avid.oz.au>, I suggested trying >> (line | sed 's/root/ROOT/'; cat) < /etc/passwd >Then, in <568@inews.intel.com> bhoughto@cmdnfs.intel.com (Blair P. Houghton) >countered with: > >>sed is the way. it's not that much slower than cat (0.9 Countered? I posted on _Monday_ evening, an easy three days before you did. If that's countering, I'd like to announce I'm countering the price of oil next wednesday; it's going to climb like a rocket. I'd completely forgotten line(1). Apparently, I'm not the only one :-|. --Blair "Gotta go see a broker about some short-selling on the commodities floor..."