I have a huge data set, and I want to remove the columns which have the same value of -9. I have 20 rows and million columns.
I want to remove column 1,9,11 (which are all same with the value of -9) this is just a small portion of my data set. I cannot count which columns have all -9 with my full data set.
Appreciate you help,
Thanks!
sample1 -9 3 -9 0 -9 2 -9 -9 -9 1 -9
sample2 -9 -9 0 -9 0 2 -9 -9 -9 -9 -9
sample3 -9 -9 -9 -9 -9 2 3 1 -9 -9 -9
sample4 -9 -9 -9 -9 -9 2 -9 1 -9 -9 -9
Output;
sample1 3 -9 0 -9 2 -9 -9 1
sample2 -9 0 -9 0 2 -9 -9 -9
sample3 -9 -9 -9 -9 2 3 1 -9
sample4 -9 -9 -9 -9 2 -9 1 -9
I tried to remove it with perl.