Use sed to replace the last space in each line with a comma, then remove all spaces – askubuntu.com

I have a two-column, space delimited .txt file, but the first column has spaces (which are errors). I need to convert it to a csv, but I can't just replace all the spaces with commas. Example input: ...

from Hot Questions - Stack Exchange OnStackOverflow
via Blogspot

Share this

Artikel Terkait

0 Comment to "Use sed to replace the last space in each line with a comma, then remove all spaces – askubuntu.com"