I have a .txt file (it is the header file of a 3D seismic file) with 90035 lines and 19 columns. Every column represents a different variable (header of the seismic file) and most of them are set to 0. I want to fill the 4th and the 18th columns: - the 4th column should be filled with values from 1 to 8185 and again from 1 to 8185 and again repetitevely for 11 times (8185x11=total numbers of lines) - the 18th column should have values increasing from 1 to 11 every 8185 lines, so that you got 8185 times each value from 1 to 11. Can you help me? I'm getting crazy with loops
Thanks a lot
here you can find the .txt file: