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

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

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


From: krondor
Subject: don't work '\n' in Gnu SED for windows
Date: Tue, 19 Aug 2008 19:23:10 -0700 (PDT)
User-agent: G2/1.0

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.


reply via email to

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