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

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

SED


From: Gopikrishna Kannan
Subject: SED
Date: Thu, 12 Sep 2002 15:30:52 +0530

Dear Sir/Madam,

The manual page of SED says the following
"Miscellaneous notes
   This version of sed supports a \<newline> sequence in  all
   regular  expressions,  the replacement  part  of  a substitute
   (s) command, and in the source and dest parts of a
   transliterate (y) command.  The \ is stripped, and the newline is kept."


But unfortunately, Iam not seeing this happening. Iam trying this
for the REPLACEMENT part of the SUBSTITUTE (S) command.

Here are some information,

$ sed -V
GNU sed version 3.02

$ cat cmdfile
s/.*PrintArgs.*$/#ifdef DEBUG \\n  & \\n  #endif \\n /g

$ sed -f cmdfile text.c > text1.c

Here is the line in text1.c after the operation,

#ifdef DEBUG \n        PrintArgs ("mplsLdpMIB.c", "The RowTest is %x\n",
csCol.RowTest); \n  #endif \n

Please correct this bug.

Thanks,
Gopikrishna K.








reply via email to

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