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

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

problem with GAWK/gsub when substitute new lines


From: shaledova
Subject: problem with GAWK/gsub when substitute new lines
Date: Wed, 17 Jun 2009 20:26:44 -0700 (PDT)

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.





reply via email to

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