You should avoid hardcoded indexes when you do not know how many items there may be.
line=line.split()
linecounter=linecounter+1
print(line[0],line[1],line[2],line[3],line[5],line[7],line[8])
When you use the split function, you cannot always be certain how many fields it is split into. So you need a better method to print all the items.
fields = line.split()
linecounter=linecounter+1
print(len(fields))
for index in range(len(fields)):
print(fields[index], '', end='')
print('')