(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: [89]
        )
      ]
      redirects: []
    )
    (C {<cd>} {<'/var/adm/acct'>})
    (command.If
      arms: [
        (if_arm
          cond: 
            (condition.Shell
              commands: [
                (command.Sentence
                  child: (C {<test>} {<Id.KW_Bang '!'>} {<-r>} {<'sum/loginlog'>})
                  terminator: <Id.Op_Semi _>
                )
              ]
            )
          action: [(C {<nulladm>} {<'sum/loginlog'>})]
          spids: [100 111]
        )
      ]
      else_action: []
      redirects: []
    )
    (command.Pipeline
      children: [
        (C {<getent>} {<passwd>})
        (C {<sed>} 
          {
            (DQ <'s/'> <Id.Lit_BadBackslash '\\'> <'([^:]*'> <Id.Lit_BadBackslash '\\'> 
              <').*/00-00-00  '> <Id.Lit_BadBackslash '\\'> <'1/'>
            )
          }
        )
        (C {<sort>} {<Id.Lit_Other '+'> <1>} {<->} {<'sum/loginlog'>})
        (C {<uniq>} {<-u>} {<Id.Lit_Other '+'> <10>})
        (C {<sort>} {<Id.Lit_Other '+'> <1>} {<->} {<'sum/loginlog'>})
        (command.Simple
          words: [{<uniq>} {<-u>}]
          redirects: [(redir op:<Id.Redir_Great '>'> loc:(redir_loc.Fd fd:1) arg:{<'sum/tmploginlog'>})]
          more_env: []
          do_fork: T
        )
      ]
      negated: F
      stderr_indices: []
    )
    (C {<cp>} {<'sum/tmploginlog'>} {<'sum/loginlog'>})
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike '_d='> name:_d)
          op: assign_op.Equal
          rhs: 
            {
              (DQ 
                (command_sub
                  left_token: <Id.Left_Backtick '`'>
                  child: 
                    (C {<date>} 
                      {<Id.Lit_Other '+'> <Id.Lit_Other '%'> <y-> <Id.Lit_Other '%'> <m-> 
                        <Id.Lit_Other '%'> <d>
                      }
                    )
                  right: <Id.Backtick_Right '`'>
                )
              )
            }
          spids: [214]
        )
      ]
      redirects: []
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike '_day='> name:_day)
          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: [231]
        )
      ]
      redirects: []
    )
    (command.Pipeline
      children: [
        (command.Simple
          words: [{<acctmerg>} {<-a>}]
          redirects: [
            (redir
              op: <Id.Redir_Less '<'>
              loc: (redir_loc.Fd fd:0)
              arg: {<'nite/ctacct.'> ($ Id.VSub_DollarName _day)}
            )
          ]
          more_env: []
          do_fork: T
        )
        (C {<sed>} {<-e>} 
          {
            (DQ <'s/^[^ \t]*[ \t]'> <Id.Lit_BadBackslash '\\'> <'([^ \t]*'> <Id.Lit_BadBackslash '\\'> 
              <')[ \t].*/'> ($ Id.VSub_DollarName _d) <'  '> <Id.Lit_BadBackslash '\\'> <'1/'>
            )
          }
        )
        (C {<nawk>} 
          {
            (SQ <'/^00-00-00/ {\n'> <'                $0 = "00" $0\n'> <'        }\n'> 
              <'\t/^[0-9][0-9]-/ {\n'> <'                d=substr($0,1,2);\n'> <'                if (d<=68) {\n'> 
              <'                        $0 = "20" $0\n'> <'                } else {\n'> <'                        $0 = "19" $0\n'> <'                }\n'> 
              <'        }\n'> <'        { print }'>
            )
          } {<->} {<'sum/loginlog'>}
        )
        (C {<sort>} {<-r>} {<Id.Lit_Other '+'> <1>})
        (C {<uniq>} {<Id.Lit_Other '+'> <10>})
        (C {<sort>})
        (command.Simple
          words: [
            {<nawk>}
            {
              (SQ <'/^[0-9][0-9][0-9][0-9]-/ {\n'> <'\t$0 = substr($0,3)\n'> <'    }\n'> 
                <'    { print }'>
              )
            }
          ]
          redirects: [(redir op:<Id.Redir_Great '>'> loc:(redir_loc.Fd fd:1) arg:{<'sum/tmploginlog'>})]
          more_env: []
          do_fork: T
        )
      ]
      negated: F
      stderr_indices: []
    )
    (C {<cp>} {<'sum/tmploginlog'>} {<'sum/loginlog'>})
    (C {<rm>} {<-f>} {<'sum/tmploginlog'>})
  ]
)