(command.CommandList
  children: [
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'PATH='> name:PATH)
          op: assign_op.Equal
          rhs: {<'/usr/lib/acct'> <Id.Lit_Colon ':'> <'/usr/bin'> <Id.Lit_Colon ':'> <'/usr/sbin'>}
          spids: [98]
        )
      ]
      redirects: []
    )
    (command.WhileUntil
      keyword: <Id.KW_While while>
      cond: (condition.Shell commands:[(C {<getopts>} {<cl>} {<i>})])
      body: 
        (command.DoGroup
          children: [
            (command.Case
              to_match: {($ Id.VSub_DollarName i)}
              arms: [
                (case_arm
                  pat_list: [{<c>}]
                  action: [
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'CMDEXCPT='> name:CMDEXCPT)
                          op: assign_op.Equal
                          rhs: {<1>}
                          spids: [127]
                        )
                      ]
                      redirects: []
                    )
                  ]
                  spids: [124 125 129 -1]
                )
                (case_arm
                  pat_list: [{<l>}]
                  action: [
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'LINEEXCPT='> name:LINEEXCPT)
                          op: assign_op.Equal
                          rhs: {<1>}
                          spids: [135]
                        )
                      ]
                      redirects: []
                    )
                  ]
                  spids: [132 133 137 -1]
                )
                (case_arm
                  pat_list: [{<Id.Lit_QMark '?'>}]
                  action: [
                    (command.Simple
                      words: [
                        {<echo>}
                        {<Usage> <Id.Lit_Colon ':'>}
                        {<prdaily>}
                        {<Id.Lit_LBracket '['> <-c> <Id.Lit_RBracket ']'>}
                        {<Id.Lit_LBracket '['> <-l> <Id.Lit_RBracket ']'>}
                        {<Id.Lit_LBracket '['> <mmdd> <Id.Lit_RBracket ']'>}
                      ]
                      redirects: [(redir op:<Id.Redir_GreatAnd '>&'> loc:(redir_loc.Fd fd:1) arg:{<2>})]
                      more_env: []
                      do_fork: T
                    )
                    (command.ControlFlow
                      token: <Id.ControlFlow_Exit exit>
                      arg_word: {<2>}
                    )
                  ]
                  spids: [140 141 169 -1]
                )
              ]
              redirects: []
            )
          ]
        )
      redirects: []
    )
    (C {<shift>} 
      {
        (command_sub
          left_token: <Id.Left_Backtick '`'>
          child: (C {<expr>} {($ Id.VSub_DollarName OPTIND)} {<->} {<1>})
          right: <Id.Backtick_Right '`'>
        )
      }
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'date='> name:date)
          op: assign_op.Equal
          rhs: 
            {
              (command_sub
                left_token: <Id.Left_Backtick '`'>
                child: (C {<date>} {<Id.Lit_Other '+'> <Id.Lit_Other '%'> <m> <Id.Lit_Other '%'> <d>})
                right: <Id.Backtick_Right '`'>
              )
            }
          spids: [190]
        )
      ]
      redirects: []
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike '_sysname='> name:_sysname)
          op: assign_op.Equal
          rhs: 
            {
              (DQ 
                (command_sub
                  left_token: <Id.Left_Backtick '`'>
                  child: (C {<uname>} {<-n>})
                  right: <Id.Backtick_Right '`'>
                )
              )
            }
          spids: [203]
        )
      ]
      redirects: []
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike '_nite='> name:_nite)
          op: assign_op.Equal
          rhs: {<'/var/adm/acct/nite'>}
          spids: [214]
        )
      ]
      redirects: []
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike '_lib='> name:_lib)
          op: assign_op.Equal
          rhs: {<'/usr/lib/acct'>}
          spids: [217]
        )
      ]
      redirects: []
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike '_sum='> name:_sum)
          op: assign_op.Equal
          rhs: {<'/var/adm/acct/sum'>}
          spids: [220]
        )
      ]
      redirects: []
    )
    (C {<cd>} {(${ Id.VSub_Name _nite)})
    (command.If
      arms: [
        (if_arm
          cond: 
            (condition.Shell
              commands: [
                (command.Sentence
                  child: 
                    (C {<Id.Lit_LBracket '['>} 
                      {
                        (command_sub
                          left_token: <Id.Left_Backtick '`'>
                          child: 
                            (C {<expr>} {(DQ ($ Id.VSub_Number 1))} {<Id.Lit_Colon ':'>} 
                              {<Id.Lit_LBracket '['> <01> <Id.Lit_RBracket ']'> <Id.Lit_LBracket '['> 
                                <0-9> <Id.Lit_RBracket ']'> <Id.Lit_LBracket '['> <0-3> <Id.Lit_RBracket ']'> <Id.Lit_LBracket '['> <0-9> 
                                <Id.Lit_RBracket ']'>
                              }
                            )
                          right: <Id.Backtick_Right '`'>
                        )
                      } {<-eq>} {<4>} {<-a>} {(DQ ($ Id.VSub_Number 1))} {<Id.KW_Bang '!'> <Id.Lit_Equals '='>} 
                      {(DQ ($ Id.VSub_DollarName date))} {<Id.Lit_RBracket ']'>}
                    )
                  terminator: <Id.Op_Semi _>
                )
              ]
            )
          action: [
            (command.If
              arms: [
                (if_arm
                  cond: 
                    (condition.Shell
                      commands: [
                        (C {<Id.Lit_LBracket '['>} {(DQ ($ Id.VSub_DollarName CMDEXCPT))} 
                          {<Id.Lit_Equals '='>} {(DQ <1>)} {<Id.Lit_RBracket ']'>}
                        )
                      ]
                    )
                  action: [
                    (command.Simple
                      words: [
                        {<echo>}
                        {
                          (DQ <'Cannot print command exception reports except for '> 
                            (command_sub
                              left_token: <Id.Left_Backtick '`'>
                              child: (C {<date>} {(SQ <'+%h %d'>)})
                              right: <Id.Backtick_Right '`'>
                            )
                          )
                        }
                      ]
                      redirects: [(redir op:<Id.Redir_GreatAnd '>&'> loc:(redir_loc.Fd fd:1) arg:{<2>})]
                      more_env: []
                      do_fork: T
                    )
                    (command.ControlFlow
                      token: <Id.ControlFlow_Exit exit>
                      arg_word: {<5>}
                    )
                  ]
                  spids: [282 299]
                )
              ]
              else_action: []
              redirects: []
            )
            (command.If
              arms: [
                (if_arm
                  cond: 
                    (condition.Shell
                      commands: [
                        (C {<Id.Lit_LBracket '['>} {(DQ ($ Id.VSub_DollarName LINEEXCPT))} 
                          {<Id.Lit_Equals '='>} {(DQ <1>)} {<Id.Lit_RBracket ']'>}
                        )
                      ]
                    )
                  action: [
                    (command.Pipeline
                      children: [
                        (command.Simple
                          words: [{<acctmerg>} {<-a>}]
                          redirects: [
                            (redir
                              op: <Id.Redir_Less '<'>
                              loc: (redir_loc.Fd fd:0)
                              arg: {(${ Id.VSub_Name _sum) <'/tacct'> ($ Id.VSub_Number 1)}
                            )
                          ]
                          more_env: []
                          do_fork: T
                        )
                        (C {<awk>} {<-f>} {(${ Id.VSub_Name _lib) <'/ptelus.awk'>})
                      ]
                      negated: F
                      stderr_indices: []
                    )
                    (command.ControlFlow
                      token: <Id.ControlFlow_Exit exit>
                      arg_word: {($ Id.VSub_QMark '?')}
                    )
                  ]
                  spids: [329 346]
                )
              ]
              else_action: []
              redirects: []
            )
            (C {<cat>} {(${ Id.VSub_Name _sum) <'/rprt'> ($ Id.VSub_Number 1)})
            (command.ControlFlow token:<Id.ControlFlow_Exit exit> arg_word:{<0>})
          ]
          spids: [230 279]
        )
      ]
      else_action: []
      redirects: []
    )
    (command.If
      arms: [
        (if_arm
          cond: 
            (condition.Shell
              commands: [
                (C {<Id.Lit_LBracket '['>} {(DQ ($ Id.VSub_DollarName CMDEXCPT))} {<Id.Lit_Equals '='>} 
                  {<1>} {<Id.Lit_RBracket ']'>}
                )
              ]
            )
          action: [
            (command.Pipeline
              children: [
                (C {<acctcms>} {<-a>} {<-s>} {(${ Id.VSub_Name _sum) <'/daycms'>})
                (C {<awk>} {<-f>} {(${ Id.VSub_Name _lib) <'/ptecms.awk'>})
              ]
              negated: F
              stderr_indices: []
            )
          ]
          spids: [397 411]
        )
      ]
      else_action: []
      redirects: []
    )
    (command.If
      arms: [
        (if_arm
          cond: 
            (condition.Shell
              commands: [
                (C {<Id.Lit_LBracket '['>} {(DQ ($ Id.VSub_DollarName LINEEXCPT))} {<Id.Lit_Equals '='>} 
                  {<1>} {<Id.Lit_RBracket ']'>}
                )
              ]
            )
          action: [
            (command.Pipeline
              children: [
                (command.Simple
                  words: [{<acctmerg>} {<-a>}]
                  redirects: [
                    (redir
                      op: <Id.Redir_Less '<'>
                      loc: (redir_loc.Fd fd:0)
                      arg: {(${ Id.VSub_Name _sum) <'/tacct'> (${ Id.VSub_Name date)}
                    )
                  ]
                  more_env: []
                  do_fork: T
                )
                (C {<awk>} {<-f>} {(${ Id.VSub_Name _lib) <'/ptelus.awk'>})
              ]
              negated: F
              stderr_indices: []
            )
          ]
          spids: [438 452]
        )
      ]
      else_action: []
      redirects: []
    )
    (command.If
      arms: [
        (if_arm
          cond: 
            (condition.Shell
              commands: [
                (C {<Id.Lit_LBracket '['>} {(DQ ($ Id.VSub_DollarName CMDEXCPT))} {<Id.Lit_Equals '='>} 
                  {<1>} {<-o>} {(DQ ($ Id.VSub_DollarName LINEEXCPT))} {<Id.Lit_Equals '='>} {<1>} {<Id.Lit_RBracket ']'>}
                )
              ]
            )
          action: [(command.ControlFlow token:<Id.ControlFlow_Exit exit> arg_word:{<0>})]
          spids: [482 506]
        )
      ]
      else_action: []
      redirects: []
    )
    (command.Pipeline
      children: [
        (command.Subshell
          child: 
            (command.CommandList
              children: [
                (command.Sentence
                  child: (C {<cat>} {<reboots>})
                  terminator: <Id.Op_Semi _>
                )
                (command.Sentence
                  child: (C {<echo>} {(DQ )})
                  terminator: <Id.Op_Semi _>
                )
                (C {<cat>} {<lineuse>})
              ]
            )
          redirects: []
        )
        (C {<pr>} {<-h>} {(DQ <'DAILY REPORT FOR '> (${ Id.VSub_Name _sysname))})
      ]
      negated: F
      stderr_indices: []
    )
    (C {<prtacct>} {<daytacct>} {(DQ <'DAILY USAGE REPORT FOR '> (${ Id.VSub_Name _sysname))})
    (C {<pr>} {<-h>} {(DQ <'DAILY COMMAND SUMMARY'>)} {<daycms>})
    (C {<pr>} {<-h>} {(DQ <'MONTHLY TOTAL COMMAND SUMMARY'>)} {<cms>})
    (C {<pr>} {<-h>} {(DQ <'LAST LOGIN'>)} {<-3>} {<'../sum/loginlog'>})
    (command.ControlFlow token:<Id.ControlFlow_Exit exit> arg_word:{<0>})
  ]
)