1 started job on date & time JOB-A
2 started job on date & time JOB-B
3 completed job on data & time JOB-A
4 started job on date & time JOB-C
5 started job on date & time JOB-D
6 completed job on data & time JOB-B
7 started job on date & time JOB-E
8 started job on date & time JOB-F
9 completed job on data & time JOB-C
10 completed job on data & time JOB-D
12 completed job on data & time JOB-F
As given above I could see that E is not completed and hence is missing from log file. I am trying to find those jobs which are like E. That is having one entry for started and no entry for completed. I could do a
and match them. That doesn't help me to find the jobs which are not completed. I am sure there is a better way to do it. One more thing to add, I don't have the list of job names.
When you wrote the code you introduced an extra space in then unset CNT[ $JOBID] make sure that it is as unset CNT[$JOBID] with no space between the first [ and the $
Yes, by adding an extra character to $JOBID now the variable that the shell sees is $JOBIDl which contains nothing, since it does not exist, thus feeding to unset CNT[ + nothing