抓取檔案裡數行連續的文字區塊 - Linux
By Olga
at 2013-06-17T15:28
at 2013-06-17T15:28
Table of Contents
↓放想找的字串
awk 'BEGIN{FS="\n";RS="\n\n"} {if(match($1,"") && match($2,"")) print $0}'
↑放行數
如果有寫錯再自己看一下awk的語法 應該不會差很多
--
Tags:
Linux
All Comments
By Blanche
at 2013-06-18T16:47
at 2013-06-18T16:47
By Audriana
at 2013-06-20T19:07
at 2013-06-20T19:07
By Quintina
at 2013-06-21T01:22
at 2013-06-21T01:22
Related Posts
抓取檔案裡數行連續的文字區塊
By Tristan Cohan
at 2013-06-17T14:14
at 2013-06-17T14:14
HackingThursday 固定聚會 (2013-06-20)
By Madame
at 2013-06-17T12:28
at 2013-06-17T12:28
HackingThursday 固定聚會 (2013-06-20)
By Kelly
at 2013-06-17T12:02
at 2013-06-17T12:02
Centos BIND 異常
By Daph Bay
at 2013-06-16T21:58
at 2013-06-16T21:58
想組linux kernel讀書會
By Zanna
at 2013-06-16T18:50
at 2013-06-16T18:50