Hi Everyone,
I am a newbie to this forum
.
I am stuck with some awk programming.
Basically, I have a huge file of data (1000*16384).
My objective is that for each
impair line (so line 1, 3, ...; lines starting with 1), I want to delete the entries that are smaller than say 0.1 . Furthermore, I also want to delete the entries in the pair lines (i.e. line 2, 4, ...) that occupy the index positions of the deleted entries of the previous line (so if entry/field i=5 was deleted in line 1 because it is smaller than 0.1, then I want the entry/field i=5 in line 2 to be also deleted regardless of its value). Here is an attempt
awk '{ for (j=1; j<=NR; j=j+2) { for (i=1; i<=NF; i++) { { if ($i<0.1) { sub($i,"") ; c = i ; NR == k} }; NR==k+1 ; sub($c,"") }} } } } print }' dataFile1.output > dataFile2.output
thanks in advance