Remove the first comma in a TXT fil
I would like to remove the first comma in a text file. My file is comma delimited data so i want to be sure that i only strip the first comma and no other ones. Can you please help me?
|
To remove the first comma in every line within the file (and not simply the first comma in the file as a whole):
Code:
sed -i.backup 's@,@@' filename |
Thank you for your help, but I was not clear. I would like to be able to remove ONLY the first comma in the file.
|
If the first comma is on line 1:
Code:
sed -i.backup '1 s@,@@' filename |
All times are GMT -5. The time now is 05:02 AM. |