I have a long file like
Processin SCRIPT10 file.. Submitted batch job 1715572 Processin SCRIPT100 file.. Processin SCRIPT1000 file.. Submitted batch job 1715574 Processin SCRIPT10000 file.. Processin SCRIPT10001 file.. Processin SCRIPT10002 file.. Submitted batch job 1715577 Processin SCRIPT10003 file.. Submitted batch job 1715578 Processin SCRIPT10004 file.. Submitted batch job 1715579
I want to know jobs (script names) that have not been submitted. This means that after processing the line, the batch job in the line is not executed.
So far, I have been trying to complete this task using
pcregrep -M "Processin.*\n.*Processin" execScripts2.log | awk 'NR % 2 == 0'
But it does not cope properly with a situation where several scripts are not processed. It outputs, surprisingly, only the lines SCRIPT1000 and SCRIPT10001. Can you show me the best liner?
Ideally, the output will be only lines without βSentβ on the next line (or just a script), which means:
SCRIPT100 SCRIPT10000 SCRIPT10001
Thanks.
source share