(CommandList
  children: [
    (Assignment
      keyword: Assign_None
      pairs: [(assign_pair lhs:(LhsName name:WHAT) op:Equal rhs:{($ VSub_Number '$1')} spids:[3])]
      spids: [3]
    )
    (Assignment
      keyword: Assign_None
      pairs: [(assign_pair lhs:(LhsName name:DIR) op:Equal rhs:{($ VSub_Number '$2')} spids:[6])]
      spids: [6]
    )
    (Assignment
      keyword: Assign_None
      pairs: [(assign_pair lhs:(LhsName name:MINIC) op:Equal rhs:{($ VSub_Number '$3')} spids:[9])]
      spids: [9]
    )
    (Assignment
      keyword: Assign_None
      pairs: [(assign_pair lhs:(LhsName name:MAXIC) op:Equal rhs:{($ VSub_Number '$4')} spids:[12])]
      spids: [12]
    )
    (Assignment
      keyword: Assign_None
      pairs: [(assign_pair lhs:(LhsName name:MINOC) op:Equal rhs:{($ VSub_Number '$5')} spids:[15])]
      spids: [15]
    )
    (Assignment
      keyword: Assign_None
      pairs: [(assign_pair lhs:(LhsName name:MAXOC) op:Equal rhs:{($ VSub_Number '$6')} spids:[18])]
      spids: [18]
    )
    (Assignment
      keyword: Assign_None
      pairs: [(assign_pair lhs:(LhsName name:prefix) op:Equal rhs:{($ VSub_Number '$8')} spids:[21])]
      spids: [21]
    )
    (Assignment
      keyword: Assign_None
      pairs: [
        (assign_pair
          lhs: (LhsName name:meanstatsfilename)
          op: Equal
          rhs: {($ VSub_Number '$2') (/mean.html)}
          spids: [25]
        )
      ]
      spids: [25]
    )
    (Assignment
      keyword: Assign_None
      pairs: [(assign_pair lhs:(LhsName name:WORK_DIR) op:Equal rhs:{(tmp)} spids:[30])]
      spids: [30]
    )
    (C {(mkdir)} {($ VSub_Name '$WORK_DIR')})
    (Assignment
      keyword: Assign_None
      pairs: [
        (assign_pair
          lhs: (LhsName name:DATA_FILE)
          op: Equal
          rhs: 
            {
              (CommandSubPart
                command_list: 
                  (CommandList
                    children: [
                      (Pipeline
                        children: [
                          (C {(find)} {($ VSub_Name '$DIR')} {(-name)} {(DQ ('*.dat'))})
                          (C {(grep)} {(_) (${ VSub_Name WHAT)})
                        ]
                        negated: F
                      )
                    ]
                  )
                left_token: <Left_Backtick '`'>
                spids: [39 58]
              )
            }
          spids: [38]
        )
      ]
      spids: [38]
    )
    (If
      arms: [
        (if_arm
          cond: [
            (Sentence
              child: (C {(Lit_Other '[')} {(-n)} {(DQ ($ VSub_Name '$DATA_FILE'))} {(Lit_Other ']')})
              terminator: <Op_Semi ';'>
            )
          ]
          action: [
            (C {(echo)} {(DQ )})
            (C {(echo)} {(DQ ($ VSub_Number '$1') (...))})
            (ForEach
              iter_name: FILE
              iter_words: [{($ VSub_Name '$DATA_FILE')}]
              do_arg_iter: F
              body: 
                (DoGroup
                  children: [
                    (Sentence
                      child: 
                        (Assignment
                          keyword: Assign_None
                          pairs: [
                            (assign_pair
                              lhs: (LhsName name:BASE)
                              op: Equal
                              rhs: 
                                {
                                  (BracedVarSub
                                    token: <VSub_Name FILE>
                                    suffix_op: 
                                      (StringUnary
                                        op_id: VOp1_DPound
                                        arg_word: {('*') (Lit_Slash /)}
                                      )
                                    spids: [113 118]
                                  )
                                }
                              spids: [112]
                            )
                          ]
                          spids: [112]
                        )
                      terminator: <Op_Semi ';'>
                    )
                    (Sentence
                      child: 
                        (Assignment
                          keyword: Assign_None
                          pairs: [
                            (assign_pair
                              lhs: (LhsName name:BASE)
                              op: Equal
                              rhs: 
                                {
                                  (BracedVarSub
                                    token: <VSub_Name FILE>
                                    suffix_op: 
                                      (StringUnary
                                        op_id: VOp1_DPound
                                        arg_word: {('*') (Lit_Slash /)}
                                      )
                                    spids: [123 128]
                                  )
                                }
                              spids: [122]
                            )
                          ]
                          spids: [122]
                        )
                      terminator: <Op_Semi ';'>
                    )
                    (Sentence
                      child: 
                        (Assignment
                          keyword: Assign_None
                          pairs: [
                            (assign_pair
                              lhs: (LhsName name:AVANT)
                              op: Equal
                              rhs: {(bench_) (${ VSub_Name WHAT) (_)}
                              spids: [132]
                            )
                          ]
                          spids: [132]
                        )
                      terminator: <Op_Semi ';'>
                    )
                    (Sentence
                      child: 
                        (Assignment
                          keyword: Assign_None
                          pairs: [
                            (assign_pair
                              lhs: (LhsName name:REDUC)
                              op: Equal
                              rhs: 
                                {
                                  (BracedVarSub
                                    token: <VSub_Name BASE>
                                    suffix_op: 
                                      (StringUnary
                                        op_id: VOp1_DPound
                                        arg_word: {('*') ($ VSub_Name '$AVANT')}
                                      )
                                    spids: [142 147]
                                  )
                                }
                              spids: [141]
                            )
                          ]
                          spids: [141]
                        )
                      terminator: <Op_Semi ';'>
                    )
                    (Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (LhsName name:TITLE)
                          op: Equal
                          rhs: 
                            {
                              (BracedVarSub
                                token: <VSub_Name REDUC>
                                suffix_op: (StringUnary op_id:VOp1_Percent arg_word:{(.dat)})
                                spids: [152 156]
                              )
                            }
                          spids: [151]
                        )
                      ]
                      spids: [151]
                    )
                    (C {(cp)} {($ VSub_Name '$FILE')} {(${ VSub_Name WORK_DIR) (/) (${ VSub_Name TITLE)})
                  ]
                  spids: [101 178]
                )
              spids: [97 16777215]
            )
            (C {(cd)} {($ VSub_Name '$WORK_DIR')})
            (SimpleCommand
              words: [
                {(../main)}
                {($ VSub_Number '$1')}
                {($ VSub_Number '$3')}
                {($ VSub_Number '$4')}
                {($ VSub_Number '$5')}
                {($ VSub_Number '$6')}
                {(Lit_Other '*')}
              ]
              redirects: [
                (Redir
                  op_id: Redir_DGreat
                  fd: 16777215
                  arg_word: {(../) ($ VSub_Name '$meanstatsfilename')}
                  spids: [201]
                )
              ]
            )
            (C {(../mk_new_gnuplot.sh)} {($ VSub_Number '$1')} {($ VSub_Number '$2')} 
              {($ VSub_Number '$7')}
            )
            (C {(rm)} {(-f)} {(Lit_Other '*') (.gnuplot)})
            (C {(cd)} {(..)})
            (SimpleCommand
              words: [{(echo)} {(SQ <'<br/>'>)}]
              redirects: [
                (Redir
                  op_id: Redir_DGreat
                  fd: 16777215
                  arg_word: {($ VSub_Name '$meanstatsfilename')}
                  spids: [236]
                )
              ]
            )
            (Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (LhsName name:webpagefilename)
                  op: Equal
                  rhs: {($ VSub_Number '$2') (/index.html)}
                  spids: [242]
                )
              ]
              spids: [242]
            )
            (SimpleCommand
              words: [
                {(echo)}
                {(SQ <'<hr/><a href="'>) ($ VSub_Name '$prefix') ($ VSub_Number '$1') 
                  (SQ <'.pdf"><img src="'>) ($ VSub_Name '$prefix') ($ VSub_Number '$1') (SQ <'.png" alt="'>) (${ VSub_Name WHAT) 
                  (SQ <'" /></a><br/>'>)
                }
              ]
              redirects: [
                (Redir
                  op_id: Redir_DGreat
                  fd: 16777215
                  arg_word: {($ VSub_Name '$webpagefilename')}
                  spids: [273]
                )
              ]
            )
          ]
          spids: [16777215 74]
        )
      ]
      spids: [16777215 278]
    )
    (C {(rm)} {(-R)} {($ VSub_Name '$WORK_DIR')})
  ]
)