2025年cat 关于grep的几个 使用

cat 关于grep的几个 使用2021 12 19 00 00 03 tool go 93 INFO xxxxxxxxx costTime 24 ms 2021 12 19 00 00 03 tool go 93 INFO xx11xxxxxxx costTime 214 ms 2021 12 19 00 00 03 tool go 93 INFO

大家好,我是讯享网,很高兴认识大家。
2021-12-19 00:00:03|tool.go:93|INFO| xxxxxxxxx costTime:24.ms 2021-12-19 00:00:03|tool.go:93|INFO| xx11xxxxxxx costTime:214.ms 2021-12-19 00:00:03|tool.go:93|INFO| xxx22xxxxxx costTime:224.ms 2021-12-19 00:00:03|tool.go:93|INFO| xxx444xxxxxx costTime:1.221s 2021-12-19 00:00:03|tool.go:93|INFO| xxx33xxxxxx costTime:241.ms 2021-12-19 00:00:03|tool.go:93|INFO| xxx555xxxxxx costTime:2.111s 2021-12-19 00:00:03|tool.go:93|INFO| xxx33xxxxxx costTime:241.ms 2021-12-19 00:00:03|tool.go:93|INFO| xxx444xxxxxx costTime:2.111s 

讯享网

将时间大于 1s的行找出来


讯享网

讯享网cat costtime_1.log |grep -E "\:[1-9]\.[1-9]+s" 

将时间大于 1s的并且不包括“555”的行找出来

cat costtime_1.log |grep -v "555" |grep -E "\:[1-9]\.[1-9]+s" 
小讯
上一篇 2025-03-17 11:28
下一篇 2025-03-29 10:45

相关推荐

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容,请联系我们,一经查实,本站将立刻删除。
如需转载请保留出处:https://51itzy.com/kjqy/32526.html