I wanna check if 2 lines have equal $4 my shell must check if the diffrence between $3 in line 2 and $2 in line 3 is equal 1 it must concatenate both line into one like this
1;1000000000;1099999999;2
2;1100000000;1199999999;3
3;1200000000;1200004444;3
Output
1;1000000000;1099999999;2
2;1100000000;1200004444;3
I dont know even to use awk or something else
sort -t';' -k4 -u file
?