【求助】文本抓取
发表于 : 2014-09-29 14:52
我要处理的文件中有大量的task块,需要将该块抓取出来,请各位高人帮忙
cat myfile
--------------
other content
task task_name1
Description
…………………………
endtask
other content
task task_name2
Description
…………………………
endtask
抓取结果为干干净净的task块,如下
task task_name1
Description
…………………………
endtask
task task_name2
Description
…………………………
endtask
如何才能办到,谢谢!
cat myfile
--------------
other content
task task_name1
Description
…………………………
endtask
other content
task task_name2
Description
…………………………
endtask
抓取结果为干干净净的task块,如下
task task_name1
Description
…………………………
endtask
task task_name2
Description
…………………………
endtask
如何才能办到,谢谢!