Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
<div class='hello'>...</div>如果我有多个要在多个文件中删除的标签,我怎么能做到这一点?
<div class='hello'>...</div>
你可以试试xmlstartlet
xmlstartlet
xmlstarlet ed -d '//div[@class="hello"]' <input.xml >output.xml
将其包裹起来find以处理多个文件。
find