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
&&
– Sundeep Mar 04 '17 at 12:16&&
by;
– Hamza Jabbour Mar 04 '17 at 12:17&
.&&
connects two commands, and you did not provide one on the right-hand side. See Lists in the manual: https://www.gnu.org/software/bash/manual/bashref.html#Lists – glenn jackman Mar 04 '17 at 13:38