我不知道如何grep
在这个文件中找到我想要的行:
8.txt 07:34:12 -> CONTENT START
8.txt 07:34:42 <-CONTENT END
8.txt 07:35:08 -> CONTENT START
8.txt 07:36:33 <-CONTENT END
8.txt 07:57:51 -> CONTENT START
8.txt 07:57:52 -> CONTENT START
8.txt 07:58:25 <-CONTENT END
8.txt 07:58:36 -> CONTENT START
8.txt 07:59:24 <-CONTENT END
8.txt 08:20:23 -> CONTENT START
8.txt 08:21:22 <-CONTENT END
8.txt 08:22:44 -> CONTENT START
8.txt 07:34:12 -> CONTENT START
8.txt 08:23:07 <-CONTENT END
8.txt 08:26:35 -> CONTENT START
8.txt 08:27:24 <-CONTENT END
8.txt 08:29:53 -> CONTENT START
8.txt 08:30:28 <-CONTENT END
8.txt 08:30:59 -> CONTENT START
8.txt 08:31:21 <-CONTENT END
8.txt 08:48:28 -> CONTENT START
8.txt 08:48:56 <-CONTENT END
8.txt 09:13:10 -> CONTENT START
8.txt 09:13:40 <-CONTENT END
8.txt 09:13:52 -> CONTENT START
8.txt 09:14:44 <-CONTENT END
8.txt 09:19:50 -> CONTENT START
8.txt 09:20:28 <-CONTENT END
8.txt 09:27:04 -> CONTENT START
8.txt 09:27:40 <-CONTENT END
如果CONTENT START
出现在连续行上,则显示它们。
预期输出:
8.txt 07:57:51 -> CONTENT START
8.txt 07:57:52 -> CONTENT START
8.txt 08:22:44 -> CONTENT START
8.txt 07:34:12 -> CONTENT START
如何才能做到这一点?