欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

awk區(qū)間取值的例子

 更新時間:2013年02月04日 18:28:05   作者:  
awk區(qū)間取值的例子,匹配某一區(qū)間內(nèi)的值,有需要的朋友不妨參考下
有如下的文本內(nèi)容:
*********
123123
123123
*********
321321
321321
*********
456456
456456
*********
123123
123123
********

匹配123,取出******區(qū)間的內(nèi)容:
awk -vRS="*+" '/123/{print RT$0}' file

說明:
RS The input record separator, by default a newline(\n).
RT The record terminator. Gawk sets RT to the input text that matched the character or regular expression specified by RS.

相關(guān)文章

最新評論