I am trying to use a java script/software that is run by doing:
java -jar picard.jar MergeSamFiles \
I=input_1.bam \
I=input_2.bam \
O=output_merged_files.bam
where I= represents the input into the program. I have a text file with inputs that I would like to feed into this program, such as:
arg1
arg2
arg3
...
where each line gets converted into I=arg1 I=arg2 I=arg3 .... Is there an easy way to do this in bash?