I am quite new to Unix and would like to convert a script I previously had in R. For this I have three different files (of equal lengths) with different variants of file names. I would like to iterate through all three files in a loop drawing for the same numberline by line taking one line from each time. However I wantam not sure how to do something like thisincorporate more than one variable into a for loop.
module load bbtools
for i in fna and j in fna2 and k in fna.prefix;
do
rename.sh -Xmx20g in='in=",${i}," out=",${j}" prefix=",${k}"
done
Is there any way I can run this directly without calling on a R script?