1
VShawn 2017-09-18 16:57:09 +08:00
正则表达式不行吗?
|
2
Immortal 2017-09-18 17:00:52 +08:00
正则表达式不行吗?
|
3
yiyiwa 2017-09-18 17:02:47 +08:00
echo request_5xx:1792 total_count:21878634 request_4xx:552 total_request_time:469576 | grep -Po '(?<=request_4xx:)\d+'
552 |
4
VShawn 2017-09-18 17:03:19 +08:00
(request_4\w\w:)\s?\d*\s
替换为 $1 553 equest_5xx: 1792 total_count: 21878634 request_4xx: 552 total_request_time: 469576 变为 request_5xx: 1792 total_count: 21878634 request_4xx: 553 total_request_time: 469576 |