Can someone tell me how to insert chreach character in the first column.
file
1 34566 34765
2 45678 45789
3 34567 34799
X 67895 66900
Y 34567 34890
file
chr1 34566 34765
chr2 45678 45789
chr3 34567 34799
chrX 67895 66900
chrY 34567 34890
I cannot figure out how to make it sed -iapplicable to a specific column. I am not good at syntax, so if you could break your explanation, I would be grateful. Also, would it be better to use awk for this?
source
share