How can I compare the values in one column and do some action after that? I want to compare the values of first column and when it changes insert a new line with zero values. For simplicity I need to write similar code as I have written in MATLAB, in AWK:How can I compare the values in one column and