I have a big table like 'df', I would like to remove all value after first ':' for each row.
I have tried :
cat df.bed | cut -f1 -d":" | head and
cat df.bed |sed 's/:.*//' | head but they removed all columns after first ':' .
rs1006501 T A 0/0:14,0:14:42:0,42,596 A 0/0:5,0:5:15:0,15,177 rs1006502 NA NA NA C,T ./. rs1015190 NA NA NA T 1/1:0,2:2:6:75,6,0 rs10164686 G A 0/0:1,0:1:3:0,3,46 NA NA
rs1006501 T A 0/0 A 0/0 rs1006502 NA NA NA C,T ./. rs1015190 NA NA NA T 1/1 rs10164686 G A 0/0 NA NA