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

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

Re: sed


From: Stepan Kasal
Subject: Re: sed
Date: Wed, 7 Apr 2004 11:51:19 +0200
User-agent: Mutt/1.4.1i

Hello,

> address@hidden wrote:
> > I am trying to do a replacement, exchanging ";" with ";" followed by a
> > newline:
> > sed 's/;/;\n/g' input > output

I beleive your approach is correct, and should work with GNU sed version 4.x.
(What does ``sed --version'' say?)
With older versions, the syntax is

sed 's/;/;\
/g'

which perhaps cannot be written on the dos line.

But as you say you have cygwin, you can write this to a bash script.

Or you can write the command to a separate file and run
        sed -f subsemi.sed input >output

I hope that at least one of these hints helps.

On Wed, Apr 07, 2004 at 12:33:37AM -0400, Paul Jarc wrote:
> sed '/;$/a\
> '

I'm afraid this is not wht the OP wanted.

Stepan Kasal




reply via email to

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