that's deleting every line where there's a comma....
try something like
sed 's/,$//' filename > filename2
the $ should mean that only commas at the *end* of a line are removed. Mike
michael.j.lacey@ntlworld.com
Email welcome if you're in a hurry or something -- but post in tek-tips as well please, and I will post my reply here as well.
I think you're replacing the comma with a space there, is that what you meant to do? Mike
michael.j.lacey@ntlworld.com
Email welcome if you're in a hurry or something -- but post in tek-tips as well please, and I will post my reply here as well.
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.