给昌哥写的过滤的东东。

是实现了,但感觉丑,不规范。

记得下先。

原始数据格式:

-- :: [ pool--thread-: ] - [ DEBUG ] origin match ::, user:, orderId:ZAZWXNLN, orderQty:, matchedQty:
-- :: [ pool--thread-: ] - [ DEBUG ] origin match ::, user:, orderId:ZAZWXNLN, orderQty:, matchedQty:
-- :: [ pool--thread-: ] - [ DEBUG ] origin match ::, user:, orderId:HJZU28X1, orderQty:, matchedQty:
-- :: [ pool--thread-: ] - [ DEBUG ] origin match ::, user:, orderId:TJZU1ZVG, orderQty:, matchedQty:
-- :: [ pool--thread-: ] - [ DEBUG ] origin match ::, user:, orderId:NJZQ6DU7, orderQty:, matchedQty:
-- :: [ pool--thread-: ] - [ DEBUG ] origin match ::, user:, orderId:ZSZW6QST, orderQty:, matchedQty:
-- :: [ pool--thread-: ] - [ DEBUG ] origin match ::, user:, orderId:, orderQty:, matchedQty:
-- :: [ pool--thread-: ] - [ DEBUG ] origin match ::, user:, orderId:, orderQty:, matchedQty:
-- :: [ pool--thread-: ] - [ DEBUG ] origin match ::, user:, orderId:ZA351478, orderQty:, matchedQty:
-- :: [ pool--thread-: ] - [ DEBUG ] origin match ::, user:, orderId:PD199184, orderQty:, matchedQty:
grep "origin match time" lll.log |awk -F '[ :,]' '{printf("%s:%s:%s %s %s %s %s\n", $16, $17, $18, $21, $24, $27,$30)}' > xxx

好不容易帮同事写的一个awk,要记下来-LMLPHP

05-13 12:38