Search Results

Search: Posts Made By: sffuji
1,648
Posted By Don Cragun
nawk ' { gsub(/&gt;&lt;/,">\n<") ...
nawk '
{ gsub(/&gt;&lt;/,">\n<")
gsub(/&gt;/,">")
gsub(/&lt;/,"<")
print
}' test.raw > test.xml
1,648
Posted By Scott
Hi. The replacement should be a string, not...
Hi.

The replacement should be a string, not a regular expression:


$ nawk '{gsub(/&lt;/,">\n"); print}' test.raw > test.xml
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 04:06 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy