Mailinglist Archive: opensuse (3280 mails)

< Previous Next >
Re: [opensuse] SED help
  • From: Carl Hartung <suselinux@xxxxxxxxxxxxx>
  • Date: Tue, 11 Dec 2007 19:30:08 -0500
  • Message-id: <200712111930.09119.suselinux@xxxxxxxxxxxxx>
On Mon December 10 2007 05:48:47 pm Aaron Kulkis wrote:
the following inserts BAR before every occurrance of foo:

s/foo/BARfoo

's/foo/BARfoo' only substitutes the first occurrance of 'foo'.

Append the 'g'lobal flag to replace all occurrances, i.e.:

s/foo/BARfoo/g'

regards,

Carl

--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx

< Previous Next >