Path: utzoo!mnetor!uunet!husc6!cmcl2!brl-adm!umd5!ames!pasteur!ucbvax!CITHEX.CALTECH.EDU!carl From: carl@CITHEX.CALTECH.EDU (Carl J Lydick) Newsgroups: comp.os.vms Subject: RE: OPINION. TPU, EDT Message-ID: <880217031952.402@CitHex.Caltech.Edu> Date: 17 Feb 88 11:25:24 GMT References: <70rrk@byuvax.bitnet> Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 15 > How do you search for/replace the end of line To search for end-of-line, use the built-in SEARCH. For example, TPU POSITION(SEARCH(LINE_END,FORWARD)); For a replace, you'd need something like: TPU POSITION(SEARCH(LINE_END,FORWARD));COPY_TEXT("new text"); MOVE_HORIZONTAL(1);APPEND_LINE; > Is it possible to prevent TPU from reading in the entire file before you > decide to go to the bottom? TPU reads the whole file into virtual memory as part of READ_FILE. You can't get there from here. It could be worse: on some UNIX systems, ed wants to read the whole file into PHYSICAL memory.