global replacements with sed
George Robbins
grr at cbmvax.UUCP
Fri Aug 11 17:32:51 AEST 1989
In article <49 at docwrk.UUCP> srh at 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 at uunet.uu.net
Commodore, Engineering Department fone: 215-431-9255 (only by moonlite)
More information about the Comp.unix.wizards
mailing list