I am quite new to shell scripting. My code should be very simple, quite a tutorial, but I cannot make it work:
case='Naca0012_pitch_V1'
for i in {0..800..10}
do
tec $case.$i.plt;
cat tec.00* > $case.$i.dat;
done
The command tec generates some files that I need to concatenate.
What I obtain is:
Error opening file Naca0012_pitch_V1.{0..800..10}.plt
from the tec utility.
It seems that the code puts "{0..800..10}" instead of substituting the variable with one of the possible cases from the brace expansion.
echo $BASH_VERSION