(CommandList children: [ (If arms: [ (if_arm cond: [ (Sentence child: (C {(Lit_Other '[')} {(DQ ($ VSub_Pound '$#'))} {(-lt)} {(2)} {(Lit_Other ']')}) terminator: <Op_Semi ';'> ) ] action: [ (SimpleCommand words: [ {(echo)} { (DQ ('Usage: ') (CommandSubPart command_list: (CommandList children:[(C {(basename)} {($ VSub_Number '$0')})]) left_token: <Left_Backtick '`'> spids: [58 62] ) (' MM YYYY [other find parameters]') ) } ] redirects: [(Redir op_id:Redir_GreatAnd fd:16777215 arg_word:{(2)} spids:[66])] ) (ControlFlow token:<ControlFlow_Exit exit> arg_word:{(1)}) ] spids: [16777215 51] ) ] spids: [16777215 74] ) (C {(set)} {(-e)}) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:month) op:Equal rhs:{($ VSub_Number '$1')} spids:[85])] spids: [85] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:year) op:Equal rhs:{($ VSub_Number '$2')} spids:[88])] spids: [88] ) (Sentence child:(C {(shift)}) terminator:<Op_Semi ';'>) (C {(shift)}) (If arms: [ (if_arm cond: [ (Sentence child: (C {(Lit_Other '[')} {(DQ ($ VSub_Name '$month'))} {(Lit_Other '=')} {(DQ (12))} {(Lit_Other ']')} ) terminator: <Op_Semi ';'> ) ] action: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:next_year) op: Equal rhs: { (CommandSubPart command_list: (CommandList children: [(C {(expr)} {($ VSub_Name '$year')} {(Lit_Other '+')} {(1)})] ) left_token: <Left_Backtick '`'> spids: [118 126] ) } spids: [117] ) ] spids: [117] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:next_year) op: Equal rhs: { (CommandSubPart command_list: (CommandList children: [(C {(printf)} {(DQ ('%02d'))} {($ VSub_Name '$next_year')})] ) left_token: <Left_Backtick '`'> spids: [130 138] ) } spids: [129] ) ] spids: [129] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:next_month) op:Equal rhs:{(1)} spids:[144])] spids: [144] ) ] spids: [16777215 114] ) ] else_action: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:next_year) op: Equal rhs: {($ VSub_Name '$year')} spids: [150] ) ] spids: [150] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:next_month) op: Equal rhs: { (CommandSubPart command_list: (CommandList children: [(C {(expr)} {($ VSub_Name '$month')} {(Lit_Other '+')} {(1)})] ) left_token: <Left_Backtick '`'> spids: [155 163] ) } spids: [154] ) ] spids: [154] ) ] spids: [147 165] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:now) op: Equal rhs: { (CommandSubPart command_list: (CommandList children: [(C {(date)} {(--utc)} {(Lit_Other '+') (Lit_Other '%') (s)})] ) left_token: <Left_Backtick '`'> spids: [168 176] ) } spids: [167] ) ] spids: [167] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:start) op: Equal rhs: { (CommandSubPart command_list: (CommandList children: [ (C {(date)} {(--date) (Lit_Other '=') (DQ ($ VSub_Name '$year') (-) ($ VSub_Name '$month') ('-01 UTC')) } {(Lit_Other '+') (Lit_Other '%') (s)} ) ] ) left_token: <Left_Backtick '`'> spids: [179 194] ) } spids: [178] ) ] spids: [178] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:end) op: Equal rhs: { (CommandSubPart command_list: (CommandList children: [ (C {(date)} {(--date) (Lit_Other '=') (DQ ($ VSub_Name '$next_year') (-) ($ VSub_Name '$next_month') ('-01 UTC')) } {(Lit_Other '+') (Lit_Other '%') (s)} ) ] ) left_token: <Left_Backtick '`'> spids: [197 212] ) } spids: [196] ) ] spids: [196] ) (If arms: [ (if_arm cond: [ (Sentence child: (C {(Lit_Other '[')} {($ VSub_Name '$start')} {(-gt)} {($ VSub_Name '$now')} {(Lit_Other ']')} ) terminator: <Op_Semi ';'> ) ] action: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:start) op: Equal rhs: {($ VSub_Name '$now')} spids: [231] ) ] spids: [231] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:end) op:Equal rhs:{(DQ )} spids:[235])] spids: [235] ) ] spids: [16777215 228] ) (if_arm cond: [ (Sentence child: (C {(Lit_Other '[')} {($ VSub_Name '$end')} {(-gt)} {($ VSub_Name '$now')} {(Lit_Other ']')} ) terminator: <Op_Semi ';'> ) ] action: [ (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:end) op:Equal rhs:{(DQ )} spids:[255])] spids: [255] ) ] spids: [239 252] ) ] spids: [16777215 259] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:start_days_ago) op: Equal rhs: { (CommandSubPart command_list: (CommandList children: [ (C {(expr)} {(EscapedLiteralPart token:<Lit_EscapedChar '\\('>)} {($ VSub_Name '$now')} {(-)} {($ VSub_Name '$start')} {(EscapedLiteralPart token:<Lit_EscapedChar '\\)'>)} {(/)} {(86400)} ) ] ) left_token: <Left_Backtick '`'> spids: [263 279] ) } spids: [262] ) ] spids: [262] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:start_days_ago) op: Equal rhs: { (CommandSubPart command_list: (CommandList children: [(C {(expr)} {($ VSub_Name '$start_days_ago')} {(Lit_Other '+')} {(1)})] ) left_token: <Left_Backtick '`'> spids: [282 290] ) } spids: [281] ) ] spids: [281] ) (If arms: [ (if_arm cond: [ (Sentence child: (C {(Lit_Other '[')} {(DQ ($ VSub_Name '$end'))} {(Lit_Other ']')}) terminator: <Op_Semi ';'> ) ] action: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:end_days_ago) op: Equal rhs: { (CommandSubPart command_list: (CommandList children: [ (C {(expr)} {(EscapedLiteralPart token:<Lit_EscapedChar '\\('>)} {($ VSub_Name '$now')} {(-)} {($ VSub_Name '$end')} {(EscapedLiteralPart token:<Lit_EscapedChar '\\)'>)} {(/)} {(86400)} ) ] ) left_token: <Left_Backtick '`'> spids: [310 326] ) } spids: [309] ) ] spids: [309] ) (C {(find)} {(DQ ($ VSub_At '$@'))} {(-daystart)} {(-mtime)} {(-) ($ VSub_Name '$start_days_ago')} {(-mtime)} {(Lit_Other '+') ($ VSub_Name '$end_days_ago')} ) ] spids: [16777215 303] ) ] else_action: [ (AndOr ops: [Op_DAmp] children: [ (C {(Lit_Other '[')} { (CommandSubPart command_list: (CommandList children: [ (Pipeline children: [(C {(echo)} {(-n)} {($ VSub_Name '$month')}) (C {(wc)} {(-c)})] negated: F ) ] ) left_token: <Left_Backtick '`'> spids: [352 364] ) } {(-eq)} {(1)} {(Lit_Other ']')} ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:month) op: Equal rhs: {(DQ (0) ($ VSub_Name '$month'))} spids: [374] ) ] spids: [374] ) ] ) (AndOr ops: [Op_DAmp] children: [ (C {(Lit_Other '[')} { (CommandSubPart command_list: (CommandList children: [ (Pipeline children: [(C {(echo)} {(-n)} {($ VSub_Name '$year')}) (C {(wc)} {(-c)})] negated: F ) ] ) left_token: <Left_Backtick '`'> spids: [383 395] ) } {(-eq)} {(2)} {(Lit_Other ']')} ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:year) op: Equal rhs: {(DQ (20) ($ VSub_Name '$year'))} spids: [405] ) ] spids: [405] ) ] ) (Pipeline children: [ (C {(find)} {(DQ ($ VSub_At '$@'))} {(-daystart)} {(-mtime)} {(-) ($ VSub_Name '$start_days_ago')} {(-printf)} {(DQ ('%p') (Lit_Other '\\') ('0%Tm-%TY') (Lit_Other '\\') (n))} ) (SimpleCommand words: [ {(grep)} {(-a)} {(DQ ($ VSub_Name '$month') (-) ($ VSub_Name '$year') (Lit_Other '$'))} ] more_env: [(env_pair name:LANG val:{(C)} spids:[438])] ) (C {(cut)} {(-d)} {(SQ )} {(-f1)}) ] negated: F ) ] spids: [347 464] ) ] )