How to cut html tag from very large multiline text file with content with use perl, sed or awk?

后端 未结 4 1833
伪装坚强ぢ
伪装坚强ぢ 2021-01-28 08:10

I want to transform this text (remove .*?) with sed, awk or perl:

{|
|-
| colspan=\"2\"|
: 
[\\underbrace{\\col         


        
4条回答
  •  再見小時候
    2021-01-28 09:09

    If all data is so nicely formatted as in your example, then your solution is very close. I modified it only slightly

    in AWK:

    sub(/.*/, "") {print; cut=1}
    /<\/math>/          {cut=0; next}
    !cut
    

提交回复
热议问题