I'm new in Linux and I also know this is a pretty common problem in the forum's questions but I have tried several options and I can't solve this issue. I am trying to execute the following script:
!/bin/bash
for i in {1..10}
do
asreml -r2 Prueba_"$i".as > stdout_"$i".txt &&
done
But I got the following error message:
bash: ./jobs1-2.sh: line 9: syntax error near unexpected token `done'
bash: ./jobs1-2.sh: line 9: `done'
I will appreciate any help
&&&&by;&.&&connects two commands, and you did not provide one on the right-hand side. See Lists in the manual: gnu.org/software/bash/manual/bashref.html#Lists