I am trying to delete all commas from the first column of a text file. However, I need to preserve the character if it is not a comma. How can I do this with awk or sed? here is an example:
,2,x.x.x.x
,1,x.x.x.x
,1,x.x.x.x
,1,x.x.x.x
,6,x.x.x.x
21,x.x.x.x
,1,x.x.x.x
,1,x.x.x.x
as you can see, I cannot simply delete the first column, as 2 digit numbers will be truncated.