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

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

Re: don't work '\n' in Gnu SED for windows


From: krondor
Subject: Re: don't work '\n' in Gnu SED for windows
Date: Wed, 20 Aug 2008 17:11:02 -0700 (PDT)
User-agent: G2/1.0

On 8월20일, 오전11시23분, address@hidden wrote:
> Hi, everybody.
>
> I'm trying to change some string in a text file with GNU SED(FOR
> WINDOWS)
> but it seems that '\n' is not work!!
>
> ==============================================
> command line :
>   sed -i -f myRegExp.txt mySource.txt
>
> myRegExt.txt :
>   s/<\/ejb>\n\W<method>/I_WANT_CHANGE/g
>
> mySource.txt :
>   ...
>   <ejb>com.krondor.myPackage</ejb>
>        <method>myMethod</method>
>   ....
> ==============================================
>
> The matter is '\n'...
> even "s/\n/_MyEnter_/g" doesn't work.
> Did i made an mistake??
>
> Any help will be appreciated.

thank you everybody.
maybe i have to search other way..


reply via email to

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