edit first line of long file
Cameron Paine
cbp at foster.avid.oz.au
Fri Oct 26 01:44:44 AEST 1990
In <27338 at shamash.cdc.com> ddh at 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 at foster.avid.oz - ACSnet
cbp at foster.avid.oz.au - Internet
...!{hplabs,mcvax,nttlab,ukc,uunet}!munnari!foster.avid.oz.au!cbp - UUCP
More information about the Comp.unix.questions
mailing list