Linux 查询接口的响应时间

查询接口的响应时间:html grep '接口名称' 日志文件 | grep -aoP '(?<=Cost )\d+'linux 如:grep 'localhost:8080/yt/getList' log | grep -aoP '(?<=Cost )\d+'正则表达式   -a 显示所有;-o  仅匹配;-P 后面接正则表达式;正则表达式:'(?<=Cost )\d+' 匹配'Cost '后面
相关文章
相关标签/搜索