vulieumang / regex-logfile

find string in two line

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

nộp bài thi Renoleap

regex-logfile

từ file logfile.log chạy lệnh

awk '/transaction(.*[^\s]+\s*)begin/,/end transaction/' logfile.log > data.log

để log group transaction ra file data.log

rồi xử lý tiếp bằng nodejs trong app.js

chạy lệnh node app.js kết quả sẽ hiện trong log

Fastest transaction id is: 17247 with time: 100 Average time is: 157

About

find string in two line


Languages

Language:HTML 49.0%Language:JavaScript 47.5%Language:PHP 3.5%