请教,shell脚本,如何取出数字放入数组
得到file结果为:File 'link.c'
lines executed:90.00% of 17
link.c:creating 'link.c.gcov'
现在需要取出90.00% 和17来进行操作,那位大哥指点下.谢谢了 [code]grep -E -o '[0-9].\.[0-9].%|[0-9].' urfile[/code] :D谢谢了,问题已解决[b]回复 [url=http://www.loveunix.net/redirect.php?goto=findpost&pid=1083568&ptid=117620]2#[/url] [i]jiecho[/i] [/b]
页:
[1]