Gents,
I needs to delete duplicate values and only get uniq values based in columns 2-27
Always we should keep the last record found...
I need to store one clean file and other with the duplicate values removed.
Input :
S3033.0 7305.01 0 420123.8 2580723.8 151.9311 18
S3035.0 7305.01 0 420123.3 2580773.9 151.6311 130
S3355.0 7275.01 0 418624.2 2588774.2 156.0311 224
S3353.0 7275.01 0 418624.5 2588726.2 156.3311 336
S3033.0 7305.02 0 418623.9 2588674.7 156.8311 430
S3349.0 7275.01 0 418623.1 2588627.5 157.0311 542
S3349.0 7280.01 0 418874.1 2588631.6 156.0311 657
S3355.0 7275.02 0 418376.0 2588775.5 156.6311 733
S3349.0 7280.02 0 418874.4 2588677.4 156.1311 809
S3353.0 7270.01 0 418375.3 2588718.0 156.9311 846
S3353.0 7280.01 0 418874.8 2588727.6 156.3311 922
S3351.0 7270.01 0 418375.6 2588675.5 157.3311 958
S3355.0 7275.03 0 418875.1 2588777.6 156.4311 1034
Desired Output:
cleaned file.txt
S3035.0 7305.01 0 420123.3 2580773.9 151.6311 130
S3033.0 7305.02 0 418623.9 2588674.7 156.8311 430
S3349.0 7275.01 0 418623.1 2588627.5 157.0311 542
S3349.0 7280.02 0 418874.4 2588677.4 156.1311 809
S3353.0 7270.01 0 418375.3 2588718.0 156.9311 846
S3353.0 7280.01 0 418874.8 2588727.6 156.3311 922
S3351.0 7270.01 0 418375.6 2588675.5 157.3311 958
S3355.0 7275.03 0 418875.1 2588777.6 156.4311 1034
removed.txt
S3033.0 7305.01 0 420123.8 2580723.8 151.9311 18
S3355.0 7275.01 0 418624.2 2588774.2 156.0311 224
S3353.0 7275.01 0 418624.5 2588726.2 156.3311 336
S3355.0 7275.02 0 418376.0 2588775.5 156.6311 733
Thanks in advance