I have an input like the following, and I need to put a separator between the rows if the value of the third column between the two rows is different.
one two three four five six three seven eight nine ten elevel alpha beta ten gama tango charlie oscar bla
Expected Result:
one two three four five six three seven = eight nine ten elevel alpha beta ten gama = tango charlie oscar bla
This is what I thought, but it is not.
awk '{col3=$3;next} $3!=col3{$0="\n="$0;print $0}' input
source share