Open corneliusroemer opened 3 weeks ago
Better: first remove all trailing commas, then readd if there's a comma in the line. This also removes unnecessary trailing commas
sed -e 's/,*$//' -e '/,/s/$/,/' filename
Actually, any item after the last comma is supposed to be a comment. I'm not a huge fan of this functionality, but I think we shouldn't modify this until we have a better and documented way to comment.
I see! I don't think there's a single comment like this at the moment
It should be easy to write a little sed script to auto-fix/format this:
This should: