I want to read bash script
e.g
test.sh input1 id1 name1 input2 id2 name2 input3 id3 name3
I want to read input into loop and assign group of three parameters to local variable and run different command e.g
for var in "$@"
do
input=$var
id=$var+1
name=$var+2
rawFastq=${input}
echo "input is" $input
echo "id" $id
echo "name is" $name
Rscript "$input"/script1.R ID name
done
How do I go to the next command line parameter. $var+1 or adding counter and then doing ${i+1} doesn't work?