【发布时间】:2014-06-20 06:19:24
【问题描述】:
我有文件 input.txt 如下:
文件名:test1.v
BUG: bug 102 is fixed by some user
IO_CHANGE: there is no io_change for this version
FEATURE: no feature added
文件名:test2.v
BUG: bug 103 is fixed by some user
also bug 105 is fixed
IO_CHANGE: there is no io_change for this version
FEATURE: yes feature number 3 also feature 23
and feature 34 is added
文件名:test3.v
BUG: bug 104 is fixed by some user
FEATURE: yes feature number 2
IO_CHANGE:
我的问题:- 有时对 BUG/FEATURE/IO_CHANGE 有很长的描述,其中有 2 行,或者有时 IO_CHANGE 中没有任何内容,所以它是空白的。输出文件应该包含所有错误的列表,然后是功能和 io_changes。这 3 种类型可以在输入文件中以任意顺序排列,我需要从文件中找到所有错误/功能/io_changes 并逐列列出。
【问题讨论】: