How to list autosys detail jobs?

Hi Gurus,
below list is autosys job output stats, it includes boxes, sub-boxes and detail jobs. detail jobs are most right indented ones in each box. the requests is to get all these detail jobs list.

the only way to identify the "detail job", is intend.

 auto_job                                                 03/13/2018 20:55:04  03/14/2018 15:25:51  SU 82598250/1    
  auto_joba                                               03/27/2018 14:33:08  03/27/2018 14:46:38  SU 82598250/2    
   auto_joba-bx                                          03/13/2018 20:55:08  03/14/2018 15:25:53  OI 82598250/1    
    auto_joba-bx-pa1                                         03/13/2018 20:55:13  -----                IN 82598250/1    
    auto_joba-bx-pa3                                         03/13/2018 20:55:13  -----                IN 82598250/1    
    auto_joba-bx-pa3                                       03/13/2018 20:55:12  -----                IN 82598250/1      
   auto_joba-ini                                         -----                -----                OI 82598250/0    
   auto_joba-pb2                                          -----                -----                OI 82598250/0    
   auto_joba-pb3                                          -----                -----                OI 82598250/0    
   auto_joba-pb4                                      -----                -----                OI 82598250/0    
  auto_jobt                                               -----                -----                IN 82598250/0    
   auto_jobt-ab1                                         -----                -----                IN 82598250/0    
   auto_jobt-b2                                         -----                -----                IN 82598250/0    

want to list below jobs:

    auto_joba-bx-pa1                                         03/13/2018 20:55:13  -----                IN 82598250/1    
    auto_joba-bx-pa3                                         03/13/2018 20:55:13  -----                IN 82598250/1    
    auto_joba-bx-pa3                                       03/13/2018 20:55:12  -----                IN 82598250/1
   auto_joba-ini                                         -----                -----                OI 82598250/0    
   auto_joba-pb2                                          -----                -----                OI 82598250/0    
   auto_joba-pb3                                          -----                -----                OI 82598250/0    
   auto_joba-pb4                                      -----                -----                OI 82598250/0   
   auto_jobt-ab1                                         -----                -----                IN 82598250/0    
   auto_jobt-b2                                         -----                -----                IN 82598250/0 

Methinks you mean "indent", and you want to suppress all entries with one or two spaces indentation? Why is auto_joba-bx (three leading spaces) missing in your sample result? How far would

awk '/^   +/' file
   auto_joba-bx                                          03/13/2018 20:55:08  03/14/2018 15:25:53  OI 82598250/1    
    auto_joba-bx-pa1                                         03/13/2018 20:55:13  -----                IN 82598250/1    
    auto_joba-bx-pa3                                         03/13/2018 20:55:13  -----                IN 82598250/1    
    auto_joba-bx-pa3                                       03/13/2018 20:55:12  -----                IN 82598250/1      
   auto_joba-ini                                         -----                -----                OI 82598250/0    
   auto_joba-pb2                                          -----                -----                OI 82598250/0    
   auto_joba-pb3                                          -----                -----                OI 82598250/0    
   auto_joba-pb4                                      -----                -----                OI 82598250/0    
   auto_jobt-ab1                                         -----                -----                IN 82598250/0    
   auto_jobt-b2                                         -----                -----                IN 82598250/0

get you?

1 Like

Thanks RudiC. sorry, I didn't explain it clearly. I attached a screenshot. in the screenshot, you can see, all these with red underlined are boxes, because under each underlined job, you can see there are one or more jobs "indented" to right. there maybe multiple levels (indented), because of box inside box. for example: auto_job is box, inside the job there is another box auto_joba, and another box auto_joba-bx, then detail jobs: auto_joba-bx-pa1, auto_joba-bx-pa2 and auto_joba-bx-pa3.

thanks in advance