My text file has a few lines like this…
some data here Waiting on job_bba6b2a1589b4535a804e7877dc1fe11 ... (409s) Current status: DONE
some data there Waiting on job_xyz ... (240s) Current status: DONE
I need to find the job id. In the example mentioned above…
bba6b2a1589b4535a804e7877dc1fe11
xyz
I can use grep, but how to select only the ID?
cat file.log | grep ‘Waiting on job_’
if this is what you need?