1

Block processing using awk

view story
linux-howto

http://www.unix.com – Hi, I want to know how to process block of lines using awk. For example, Sample File: Code: 20130113 18:07:50 PROCESS START ABC XYZ DEF 20130113 18:07:52 PROCESS END for ID 123 20130113 18:07:52 PROCESS START ABC XYZ DEF 20130113 18:07:53 PROCESS END for ID 124 Code: Desired Output: ID|Start_Time|End_Time|Duration(End_Time-Start_Time) 123|18:07:50|18:07:52|2 124|18:07:52|18:07:53 |1 (HowTos)