Unix 需要从文件中提取字符串 )管理的(0,0)统计数据(0.0213,0.0006,1))]

Unix 需要从文件中提取字符串 )管理的(0,0)统计数据(0.0213,0.0006,1))],unix,Unix,假设我在一个文件中有这种类型的多行,我只需要从多行中提取统计信息(0.0213,0.0006,1)部分 请建议一种方法,并解释使用的命令。您可以使用grep <token text="everyone"/></string></equals></in></filter></or></and><in><scope text="/hardwiring.excludequery"/><to

假设我在一个文件中有这种类型的多行,我只需要从多行中提取统计信息(0.0213,0.0006,1)部分


请建议一种方法,并解释使用的命令。您可以使用
grep

<token text="everyone"/></string></equals></in></filter></or></and><in><scope text="/hardwiring.excludequery"/><token text="taloglsppublishedº00051974"/></in></andnot>) MANAGED(0, 0) STATS(0.0213, 0.0006, 1))]
(或)

grep -Eo 'STATS\([^)]*\)' yourfile
grep -o 'STATS([^)]*)' yourfile