delete html comment tags using regexp

后端 未结 3 1312
被撕碎了的回忆
被撕碎了的回忆 2021-01-05 05:11
This is how my text (html) file looks like
    

Some other text

blah

Something

Result of the awk:

[~]$ cat test.txt | awk '// {off=2} /([\s\S]*)/ {if (off==0) print; if (off==2) off=0}'
Some other text

blah

Something

提交回复
热议问题