Hi, I am given a log file(see below), I need to make it to this format using bash script:
title pdfspool date rip date bmpspool date CLAB date Sometitle12 10/09/23 00:56:40 10/9/23 0:56:46 10/9/23 0:56:50 10/9/23 1:01:13
log file
!!Begin Source aserver:pdf_spool:the, Job 844b015e0043469e, Inst 844b015e0043469e Title Sometitle12.pdf Action Started Received, Ok Date 10/09/23 00:56:40 For Administrator (8) DataType = PDF (17) Source = srv01:aserver:file_input:0 !!End !!Begin Source aserver:rip:rip1, Job 844b015e0043469e, Inst 844b015e004346a0 Title Sometitle12.pdf Cyan 1 Action Started Transmit, Ok Date 10/09/23 00:56:46 For Administrator (8) DataType = Bitmap (1) Destination = srv01:bserver:bmp_spool:the (4) Parent = 844b015e0043469e/844b015e0043469e !!End !!Begin Source bserver:bmp_spool:the, Job 844b015e0043469e, Inst 844b015e004346a0 Title Sometitle12.pdf Cyan 1 Action Started Received, Ok Date 10/09/23 00:56:50 For Administrator (8) DataType = Bitmap (17) Source = srv01:aserver:rip:rip1 !!End !!Begin Source bserver:bmp_spool:the, Job 844b015e0043469e, Inst 844b015e004346a0 Title Sometitle12.pdf Cyan 1 Action Atomic Accepted, Ok Date 10/09/23 01:01:13 For Administrator (8) DataType = Bitmap (2) Source Queue = ^03Newspaper ltd(MP)^Date - 24MP^Site - N^ (5) Requested By = clab (15) Approval Status = Waiting Approved Changed from Waiting to Approved by clab. !!End
Ideas welcome.
Thanks!