我的档案就像
line 1 line 2 line 3 target line 5 line 6 line 7
我可以写一个与目标匹配的正则表达式.我需要的是我需要抓住2,3,5,6行.有什么办法吗?
perl
perl ×1