This question already has an answer here:
Closed 5 years ago.
This works:
name="test.txt"
yap -q << % > $name
[experiment_yap],
exp1_min(brother,2).
%
This does not:
for i in 01 02 03 04 05
do
name="test.txt"
yap -q << % > $name
[experiment_yap],
exp1_min(brother,2).
%
done
I receive line 19: syntax error: unexpected end of file