bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: sed


From: Bob Proulx
Subject: Re: sed
Date: Wed, 30 Mar 2005 09:57:26 -0700
User-agent: Mutt/1.5.6+20040907i

address@hidden wrote:
> "for example" must become "for.example"
> My command is: sed s." ".".".g
> error: sed: -e expression #1,char 6:Unknow option ti 's'.

You are using a "." for both the separator and the replacement.  In
that case you need to escape the replacement.  But it is easier to use
a different character for the separator.

> Can you write the correct sequence command to do so?

Try this:

  sed 's/ /./g'

Or this:

  sed 's| |.|g'

Bob




reply via email to

[Prev in Thread] Current Thread [Next in Thread]