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

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

Re: sed


From: Andreas Schwab
Subject: Re: sed
Date: Tue, 24 Aug 2004 13:36:33 +0200
User-agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (gnu/linux)

Stepan Kasal <address@hidden> writes:

> Hello,
>
> On Mon, Aug 23, 2004 at 09:26:22AM -0600, address@hidden wrote:
>> I'm trying to use 'sed' version 3.02 with the following command line on
>> dos:
>> sed -e "s/ /\n/g" my_file
>
> This syntax is supported in GNU sed 4.x only.
>
> With sed 3.x you have to create a two line file cmd.sed:
>
> s/ /\
> /g
>
> (Yes, the first line ends with a backslash.)
> and run
>       sed -f cmd.sed my_file

What's wrong with

$ sed -e 's/ /\
/g' ...

?

Andreas.

-- 
Andreas Schwab, SuSE Labs, address@hidden
SuSE Linux AG, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




reply via email to

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