I have many log files
workstation_2020_10_30-230600.log
workstation_2020_11_01-143352.log
workstation_2020_11_02-123203.log
workstation_2020_11_02-181803.log
workstation_2020_11_02-194433.log
workstation_2020_11_02-203701.log
with lines like this
I 06Nov20 13:48:11.838: PrintConsole    PrintConsole(1) unknown 0   2386    ExposureStatusChanged: ExposureId=2386,ExposureName=foobar.tif,ExposureStatus=Successful,PercentComplete=100,GroupingCount=30,OrderingTimeout=0,IsComplete=True
I want to inspect all lines where the substring IsComplete=True is found to extract the timestamp and the name of the exposure file (stated after ExposureName=).
For the above example, the output should look like
06Nov20 13:48:11 foobar.tif
My best result is
cat workstation/* | grep tif.*IsComplete=True | cut -d '=' -f 3 | cut -d ',' -f 1 | sort
foobar.tif
foobar2.tif
foobar3.tif
...
which doesn't give me the timestamp. I don't know how to proceed easily without writing loops and functions...