problem with GAWK/gsub when substitute new lines

shaledova <[email protected]> Wed, 17 Jun 2009 20:26:44 -0700 (PDT)
Newsgroups gmane.comp.gnu.utils
Message-ID <[email protected]>
Hi,

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 any help,
Rita 
-- 
View this message in context: http://www.nabble.com/problem-with-GAWK-gsub-when-substitute-new-lines-tp24085827p24085827.html
Sent from the Gnu - Utils - Help mailing list archive at Nabble.com.