So I have file with 3 columns:
9 1 2
2 2 1
5 3 1
7 3 1
5 3 1
2 3 1
8 2 1
3 2 1
1 1 1
I want to remove from the first column particular values and the relative rows, for example 2 and 5 (that are present more times in the same column) and decrement all the values in the first column that are greater than that value. So if I remove first the number 2 I want to obtain:
8 1 2
4 3 1
6 3 1
4 3 1
7 2 1
2 2 1
1 1 1
and then 5(that now is 4) my output would be:
7 1 2
5 3 1
6 2 1
2 2 1
1 1 1
How can I do that? Consider that I have to remove lot of values in the real case and the file is really big.