touch '$out1'; #if $input1 #for $input in $input1 #if $input cat '$input' >> '$out1'; #end if #end for #else echo "No input selected" >> '$out1' #end if