How to remove , if first character on line
Hi,
I have a file with lines such as the below. I want to remove the comma only if it is the first character on a line. I can't work out how to do this using sed.
*ELSET, ELSET=WHEEL_TD2
63, 64, 65, 72, 82, 88, 89, 92, 120, 121, 152, 181, 190, 221, 252, 259
, 260, 282, 283, 285, 286, 287, 291, 303, 323, 338, 437, 475, 537, 542, 545, 546
, 549, 550, 553, 554, 555, 559, 568, 570, 644, 648, 655, 657, 658, 660, 676, 693
, 741, 773, 882, 951, 1153, 1410, 1428, 1434, 1444, 1475, 1498, 1562
*ELSET, ELSET=WHEEL_TD3
22, 134, 176, 180, 241, 243, 247, 256, 271, 276, 277, 309, 311, 314, 316, 321
, 322, 324, 338, 368, 491, 543, 565, 567, 574, 576, 618, 682, 705, 1231, 1246, 1374
, 1386, 1414, 1423, 1425
Should be:
*ELSET, ELSET=WHEEL_TD2
63, 64, 65, 72, 82, 88, 89, 92, 120, 121, 152, 181, 190, 221, 252, 259
260, 282, 283, 285, 286, 287, 291, 303, 323, 338, 437, 475, 537, 542, 545, 546
549, 550, 553, 554, 555, 559, 568, 570, 644, 648, 655, 657, 658, 660, 676, 693
741, 773, 882, 951, 1153, 1410, 1428, 1434, 1444, 1475, 1498, 1562
*ELSET, ELSET=WHEEL_TD3
22, 134, 176, 180, 241, 243, 247, 256, 271, 276, 277, 309, 311, 314, 316, 321
322, 324, 338, 368, 491, 543, 565, 567, 574, 576, 618, 682, 705, 1231, 1246, 1374
1386, 1414, 1423, 1425