Good, I have the following text
'\x0c' texto largo largo
10 lineas despues
900900
texto largo texto largo
'\x0c' texto largo largo
10 lineas despues
900901
texto largo texto largo
'\x0c' texto largo largo
10 lineas despues
900906
texto largo texto largo
I need to print those numbers that are 10 lines below the '\ x0c' always
what I did until now print the line number directly but it is impossible for me to know all
with open("archivolargo.txt") as f:
for i, line in enumerate(f):
if i == 10:
print line[0:5]
if i == 180:
print line[0:5]
if i == 297:
print line[0:5]
thanks for your help