码迷,mamicode.com
首页 > 其他好文 > 详细

sed

时间:2015-09-21 15:40:27      阅读:171      评论:0      收藏:0      [点我收藏+]

标签:

 

<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

 

sed

标签:

原文地址:http://www.cnblogs.com/jacson/p/4826190.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!