Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!gem.mps.ohio-state.edu!ginosko!uunet!cbmvax!grr From: grr@cbmvax.UUCP (George Robbins) Newsgroups: comp.unix.wizards Subject: Re: global replacements with sed Message-ID: <7630@cbmvax.UUCP> Date: 11 Aug 89 07:32:51 GMT References: <49@docwrk.UUCP> Reply-To: grr@cbmvax.UUCP (George Robbins) Distribution: usa Organization: Commodore Technology, West Chester, PA Lines: 20 In article <49@docwrk.UUCP> srh@docwrk.UUCP (Steven R. Houser) writes: > I'm trying to use the sed editor to make global relacements, but I'm not > having much luck. I tried RTFM, but it doesn't give an example of what the > script file should look like. What I'm trying to do is replace occurrences > of ^L with .bp macros. > > When I use the a script file containing: > > /^L/s//\.bp > > I get a message saying "sed: command line garbled". What am I doing wrong? > What should the script look like? sed -e '/^L/s//.bp/' should work, assuming it's a real control/l and not some kind of caret followed by an L. -- George Robbins - now working for, uucp: {uunet|pyramid|rutgers}!cbmvax!grr but no way officially representing arpa: cbmvax!grr@uunet.uu.net Commodore, Engineering Department fone: 215-431-9255 (only by moonlite)