sed

<html>
<head>
<title>This is the page title</title>
</head>
<body>
This is the <b>dirst</b> line in the web page. This should provied
some<i>userfu;</i> information for us to use in our shell script
</body>
</html>
sed 's/<[^>]*>//g;/^$/d' data10
This is the page title
This is the dirst line in the web page. This should provied
someuserfu; information for us to use in our shell script
原文地址:https://www.cnblogs.com/jacson/p/4826190.html