答案是肯定的!
awk -vRS="" '...'
将空白行视为行拆分器。
以你的例子和测试:
kent$ cat b.txt
[1] Header information Timestamp Text begins
Text continues
Text continues
Text continues
[2] Header information Timestamp Text begins
Text continues
Text continues
[3] Header information Timestamp Text begins
Text continues
Text continues
Text continues
kent$ awk -vRS="" '{print "==== new block here ===="}1' b.txt
==== new block here ====
[1] Header information Timestamp Text begins
Text continues
Text continues
Text continues
==== new block here ====
[2] Header information Timestamp Text begins
Text continues
Text continues
==== new block here ====
[3] Header information Timestamp Text begins
Text continues
Text continues
Text continues