(command.CommandList children: [ (C {(echo)} {(DQ ('Content-type: text/html'))}) (C {(echo)} {(DQ )}) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:header) op: assign_op.Equal rhs: {(DQ (header.html))} spids: [18] ) ] ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:footer) op: assign_op.Equal rhs: {(DQ (footer.html))} spids: [23] ) ] ) (command.ShAssignment pairs: [(assign_pair lhs:(sh_lhs_expr.Name name:count) op:assign_op.Equal rhs:{(0)} spids:[28])] ) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (C {(Id.Lit_LBracket '[')} {(-f)} {($ Id.VSub_DollarName '$header')} {(Id.Lit_RBracket ']')} ) terminator: (Token id:Id.Op_Semi val:';' span_id:42) ) ] action: [(C {(cat)} {($ Id.VSub_DollarName '$header')})] spids: [32 44] ) ] else_action: [ (C {(echo)} {(DQ ("<html><body bgcolor='white' link='#666666' vlink='#999999'><center>"))}) ] ) (C {(echo)} {(DQ ("<table cellpadding='3' cellspacing='5'>"))}) (command.ForEach iter_name: name iter_words: [ { (command_sub left_token: (Token id:Id.Left_DollarParen val:'$(' span_id:76) command_list: (command.CommandList children: [ (command.Pipeline children: [ (C {(file)} {(/var/www/html/) (Id.Lit_Star '*')}) (C {(grep)} {(image)}) (C {(cut)} {(-d) (Id.Lit_Other ':')} {(-f1)}) ] negated: F ) ] ) ) } ] do_arg_iter: F body: (command.DoGroup children: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:name) op: assign_op.Equal rhs: { (command_sub left_token: (Token id:Id.Left_Backtick val:'`' span_id:102) command_list: (command.CommandList children: [(C {(basename)} {($ Id.VSub_DollarName '$name')})] ) ) } spids: [101] ) ] ) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (C {(Id.Lit_LBracket '[')} {($ Id.VSub_DollarName '$count')} {(-eq)} {(4)} {(Id.Lit_RBracket ']')} ) terminator: (Token id:Id.Op_Semi val:';' span_id:123) ) ] action: [ (C {(echo)} {(DQ ("</td></tr><tr><td align='center'>"))}) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:count) op: assign_op.Equal rhs: {(1)} spids: [135] ) ] ) ] spids: [111 125] ) ] else_action: [ (C {(echo)} {(DQ ("</td><td align='center'>"))}) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:count) op: assign_op.Equal rhs: { (word_part.ArithSub anode: (arith_expr.Binary op_id: Id.Arith_Plus left: (arith_expr.ArithWord w:{($ Id.VSub_DollarName '$count')}) right: (arith_expr.ArithWord w:{(Id.Lit_Digits 1)}) ) ) } spids: [149] ) ] ) ] ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:nicename) op: assign_op.Equal rhs: { (DQ (command_sub left_token: (Token id:Id.Left_DollarParen val:'$(' span_id:168) command_list: (command.CommandList children: [ (command.Pipeline children: [ (C {(echo)} {($ Id.VSub_DollarName '$name')}) (C {(sed)} { (SQ (Token id: Id.Lit_Chars val: 's/.jpg//;s/-/ /g' span_id: 178 ) ) } ) ] negated: F ) ] ) ) ) } spids: [166] ) ] ) (C {(echo)} { (DQ ("<a href='../") ($ Id.VSub_DollarName '$name') ("' target=_new><img style='padding:2px'") ) } ) (C {(echo)} { (DQ ("src='../") ($ Id.VSub_DollarName '$name') ("' height='200' width='200' border='1'></a><BR>") ) } ) (C {(echo)} {(DQ ("<span style='font-size: 80%'>") ($ Id.VSub_DollarName '$nicename') ('</span>'))} ) ] ) ) (C {(echo)} {(DQ ('</td></tr></table>'))}) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (C {(Id.Lit_LBracket '[')} {(-f)} {($ Id.VSub_DollarName '$footer')} {(Id.Lit_RBracket ']')} ) terminator: (Token id:Id.Op_Semi val:';' span_id:231) ) ] action: [(C {(cat)} {($ Id.VSub_DollarName '$footer')})] spids: [221 233] ) ] else_action: [(C {(echo)} {(DQ ('</center></body></html>'))})] ) (command.ControlFlow token:(Token id:Id.ControlFlow_Exit val:exit span_id:252) arg_word:{(0)}) ] )