How do I extract lines between two line delimiters in Perl?

前端 未结 6 1698
醉酒成梦
醉酒成梦 2020-12-09 06:23

I have an ASCII log file with some content I would like to extract. I\'ve never taken time to learn Perl properly, but I figure this is a good tool for this task.

Th

6条回答
  •  轮回少年
    2020-12-09 06:33

    How can I grab multiple lines after a matching line in Perl?

    How's that one? In that one, the END string is $^, you can change it to your END string.

    I am also a novice, but the solutions there provide quite a few methods... let me know more specifically what it is you want that differs from the above link.

提交回复
热议问题