bug-obsolete-packages
[Top][All Lists]
Advanced

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

[bug-obsolete-packages] problem with GAWK/gsub when substitute new lines


From: shaledova
Subject: [bug-obsolete-packages] problem with GAWK/gsub when substitute new lines
Date: Wed, 17 Jun 2009 20:19:33 -0700 (PDT)

Hi,
This list may be the right place to post my question?
I tried to use gawk to perform some text conversions. But I could not
substitute new lines (\n) using gsub such as:
gsub(/\[[\n]*\]/, "");

For example, if I have a file containing:
<"Week Report" [



]>

I want to convert these lines to:
<"Week Report">

What is wrong with the expression?

Thanks for your help,
Rita 
-- 
View this message in context: 
http://www.nabble.com/problem-with-GAWK-gsub-when-substitute-new-lines-tp24085796p24085796.html
Sent from the Gnu - Textutils mailing list archive at Nabble.com.





reply via email to

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