I have a file with about 200,000 lines. They are 0.01 sec apart. I want to pick every Nth line and copy to a separate file. The time appears on column 18th. I named the AWK file "Decimate".
I have tried:
BEGIN { time = 61400}
{{ if ( $18 > time )
print $0 >> "Output_file.asc"}
time = time + 5; }
# Command line: gawk -f Decimate Input_file.asc
¿What am I doing wrong? Thanks!
I think is incrementing time before it gets to the next line.
I have tried:
BEGIN { time = 61400}
{{ if ( $18 > time )
print $0 >> "Output_file.asc"}
time = time + 5; }
# Command line: gawk -f Decimate Input_file.asc
¿What am I doing wrong? Thanks!
I think is incrementing time before it gets to the next line.