Do not cross-post. We hate to read the same question in multiple forums.
[ul]
[li]Show us some sample input.[/li]
[li]Show us the matching desired output.[/li]
[li]Tell us why you want/need to use [tt]sed[/tt].[/li]
[/ul]
Does not have to be SED, that is what I have been trying to get working.
The last comma could be anywhere on the line and is not guaranteed to be the last line in the file.
But as soon as the "not guaranteed to be the last line in the file" condition appears, I would not use [tt]sed[/tt] for this. Using [tt]awk[/tt] sounds like a better approach :
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.