今天就学习课程吧!
今天就开通帐号,24,700 门业界名师课程任您挑!
Challenge: Print only those lines consisting of a complete HTML entity - Linux教程
课程: AWK Essential Training
Challenge: Print only those lines consisting of a complete HTML entity
(upbeat music) - [Instructor] Based on what we've discussed so far can you think of a way to use AWK to take an HTML input file and output only those lines which consist of a complete HTML entity. Now, what I mean by a complete HTML entity is a line that begins with an HTML tag and ends with the corresponding closing tag. So in this case, the complete HTML entity is the li, which begins with the bracket li bracket at the beginning of the line and ends with bracket slash li bracket at the end of the line. So if this line ended someplace other than at the end of the slash li bracket, then it would not be a complete HTML entity. You have 15 minutes.
随堂练习,边学边练
下载课堂讲义。学练结合,紧跟进度,轻松巩固知识。