How to append a newline after every match using xmlint --xpath

后端 未结 4 1017
别跟我提以往
别跟我提以往 2021-01-02 01:15

I have the following HTML code:


Test command 1:

# xmllint --xpath '//textarea[@name="command"]/text()' --html a.html

Test output 1:

 1
 2

Test command 2:

# xmllint --xpath0 '//textarea[@name="command"]/text()' --html a.html | xargs -0 -n1

Test output 2:

 1
 2

提交回复
热议问题