i am trying to use the loop variable within the loop. But it seems that it is loosing its value after using one time(may be i am misunderstanding). Here is my code
for i in {2000..2014}
do
echo “training representation$i_by_$i and testing representation$1999_by_$i”
done
I want the output should be like this-
training representation2000_by_2000 and testing representation1999_by_2000
but the actual output is like this-
training representation2000 and testing representation1999_by_??
can any body help?
$1actually1?2000s in your output.