Skip to Content.
Sympa Menu

sm-discuss - Re: [SM-Discuss] sed expert

sm-discuss AT lists.ibiblio.org

Subject: Public SourceMage Discussion List

List archive

Chronological Thread  
  • From: Jaka Kranjc <lynx AT mages.ath.cx>
  • To: sm-discuss AT lists.ibiblio.org
  • Subject: Re: [SM-Discuss] sed expert
  • Date: Wed, 3 May 2006 13:22:51 +0200

On Tuesday 02 May 2006 22:29, Seth Woolley wrote:
> Treeve,
>
> change the \ to be:
> sed 's|:version|2.9.05d|g; '\
> 's|:sysconfdir|/etc|g; '
>
> sed doesn't usually grok the newlines well, so you continuation them in
> bash instead of sed so that bash converts them to a normalized
> whitespace. At least, that works for me.

For me, it also requires the addition of -e for each expression:
sed -e 's|:version|2.9.05d|g; '\
-e 's|:sysconfdir|/etc|g; '
/.../

--
We cannot command nature except by obeying her. --Sir Francis Bacon

Attachment: pgpZ5CAZD8o0U.pgp
Description: PGP signature




Archive powered by MHonArc 2.6.24.

Top of Page