Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watnot!watmath!clyde!rutgers!uwvax!oddjob!hao!bill From: bill@hao.UUCP Newsgroups: comp.unix.questions Subject: sed - match newlines on input Message-ID: <570@hao.UCAR.EDU> Date: Mon, 9-Mar-87 14:52:51 EST Article-I.D.: hao.570 Posted: Mon Mar 9 14:52:51 1987 Date-Received: Tue, 10-Mar-87 05:46:32 EST Organization: High Altitude Obs./NCAR, Boulder CO Lines: 21 Keywords: imbedded newline, broke! I'm trying to match a pattern over multiple lines. For instance, on the input: one two three with the sed script: s/one\ntwo\nthree/one, two, three/g one would expect to get the following output one, two, three OK, so I don't understand the manual (what else is new). How can I get what I need? Also, what about the "Multiple Input-line Functions". Might that be the way to go? An example would really help. Thanks in advance. Bill Roberts NCAR/HAO Boulder,CO