Rbitrary cat $Rscript | R --slave --args ## Inputs. ${first_input} #for $input_file in $input_files: ${input_file.additional_input} #end for