首页 > TAG信息列表 > examined

利用awk快速求和

假如有下面这样一段文本内容: $ grep Lock_time: slow.log | head # Query_time: 1.097620 Lock_time: 0.000000 Rows_sent: 0 Rows_examined: 0 # Query_time: 0.000111 Lock_time: 0.000060 Rows_sent: 1 Rows_examined: 1 # Query_time: 0.000462 Lock_time: 0.000120 Row