Shell script uses $ before the iterator variable in a for loop. To fix, remove the $ from the iterator name in the loop declaration. Use $ only when referencing the variable.