Increment variable set i (math $i + 1) Read file line by line while read -la line echo $line end < my_file