Gents,
Please can you help me.
In the range 4-24 column the values are duplicate some times and I will like to delete the fist occurrence and keep the last only. The file is not sorted and I can sorted because from column 75 to the end the file is increase by time..
I have a file like this
S 21301.00 21481.00 2 0 915802.1 1846679.3 48.1227 23141
S 21083.00 21397.00 1 0 916712.0 1840909.0 55.7227 42035
S 21081.00 21619.00 2 0 921533.2 1843642.2 72.2227 52203
S 21299.00 22041.00 2 0 927954.1 1853627.3 96.7227 65151
S 21309.00 21861.00 2 0 923928.7 1851604.8 77.3227 2105
S 21313.00 21353.00 2 0 912876.9 1845343.2 36.2227 30120
S 21095.00 21469.00 4 0 918111.1 1842071.9 55.0227 44452
S 21309.00 21861.00 2 0 923411.6 1851708.4 79.2227 40
S 21115.00 21869.00 1 0 926530.0 1847499.1 82.3227 58
S 21321.00 21845.00 1 0 923431.7 1851669.1 79.1227 135
S 21115.00 21871.00 1 0 926560.4 1847521.8 83.3227 153
S 21113.00 21871.00 1 0 926596.1 1847485.5 83.3227 251
S 21115.00 21871.00 1 0 923473.9 1851689.8 77.9227 309
S 21113.00 21873.00 1 0 926640.2 1847501.4 83.2227 403
S 21323.00 21847.00 1 0 923455.8 1851729.7 78.0227 439
and i would like to delete the following lines
S 21309.00 21861.00 2 0 923928.7 1851604.8 77.3227 2105
S 21115.00 21871.00 1 0 926560.4 1847521.8 83.3227 153
So, my output file should be like this.
S 21301.00 21481.00 2 0 915802.1 1846679.3 48.1227 23141
S 21083.00 21397.00 1 0 916712.0 1840909.0 55.7227 42035
S 21081.00 21619.00 2 0 921533.2 1843642.2 72.2227 52203
S 21299.00 22041.00 2 0 927954.1 1853627.3 96.7227 65151
S 21313.00 21353.00 2 0 912876.9 1845343.2 36.2227 30120
S 21095.00 21469.00 4 0 918111.1 1842071.9 55.0227 44452
S 21309.00 21861.00 2 0 923411.6 1851708.4 79.2227 40
S 21115.00 21869.00 1 0 926530.0 1847499.1 82.3227 58
S 21321.00 21845.00 1 0 923431.7 1851669.1 79.1227 135
S 21113.00 21871.00 1 0 926596.1 1847485.5 83.3227 251
S 21115.00 21871.00 1 0 923473.9 1851689.8 77.9227 309
S 21113.00 21873.00 1 0 926640.2 1847501.4 83.2227 403
S 21323.00 21847.00 1 0 923455.8 1851729.7 78.0227 439
Thanks in advance